STEAM GROUP
SourceMod SM
STEAM GROUP
SourceMod SM
2,727
IN-GAME
13,428
ONLINE
Founded
6 August, 2007
Showing 1-10 of 33 entries
11
SQL error in plugin, help ?
bool g_DatabaseIsConnected = false; public void OnDatabaseConnect(Handle owner, Handle hndl, const char[] error, any data) { if (hndl == INVALID_HANDLE) { LogError("Failed to connect! Error: %s", error); PrintToServer("Failed to connect: %s", error); SetFailState("Failed to connect, SQL Error: %s", error); return; } db = hndl; g_DatabaseIsConnected = true; SQL_CreateTables(); } public void OnClientPostAdminCheck(int client) { if (!g_DatabaseIsConnected) return; if (db == INVALID_HANDLE) SetFailState("Failed to connect, SQL Error"); if(!IsValidClient(client)) return; CountRep(client); char sQuery[1256]; char client_steamID[64]; if (!GetClientAuthId(client, AuthId_Engine, client_steamID, sizeof(client_steamID))) return; if (!GetConVarBool(g_hMultipleRepsConvar)) { for (int i; i < MaxClients; i++) { if (!IsValidClient(i)) continue; char i_SteamID[64]; if (!GetClientAuthId(i, AuthId_Engine, i_SteamID, sizeof(i_SteamID))) continue; Handle dp = CreateDataPack(); WritePackCell(dp, client); WritePackCell(dp, i); canRep[client] = true;

Format(sQuery, sizeof(sQuery), "SELECT COUNT(*) FROM `reputation` WHERE `giver_steamid` = \"%s\" AND `recipient_steamid` = \"%s\"", client_steamID ,i_SteamID);
SQL_TQuery(db, SQL_MultipleRepCheck, sQuery, dp);

canRep[client] = true;

Format(sQuery, sizeof(sQuery), "SELECT COUNT(*) FROM `reputation` WHERE `giver_steamid` = \"%s\" AND `recipient_steamid` = \"%s\"", i_SteamID, client_steamID);
SQL_TQuery(db, SQL_MultipleRepCheck, sQuery, dp);
}
}

if (GetConVarBool(g_hConnectAnnounceConvar))
CreateTimer(3.0, CreateMessage, client);
}
2
RTD is dead?
10
Hookevent "tank_killed" not working (VS or campaign)
6
Help with [TeamGames] plugin compile
10
Hookevent "tank_killed" not working (VS or campaign)
Showing 1-10 of 33 entries