not redoing getclientserial but instead just passing the parameter along the way
This commit is contained in:
parent
3e3a193e1c
commit
4b01705bba
@ -143,7 +143,7 @@ public void SQL_callback_update(Database db, DBResultSet results, const char[] e
|
|||||||
}
|
}
|
||||||
if (IsValidClient(client) && !g_disable_html_motd[client])
|
if (IsValidClient(client) && !g_disable_html_motd[client])
|
||||||
{
|
{
|
||||||
CreateTimer(7.0, re_open_motd, GetClientSerial(client));
|
CreateTimer(7.0, re_open_motd, Serial);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ public Action re_open_motd(Handle hTimer, int Serial)
|
|||||||
KvSetString(panel, "msg", "https://unloze.com/motd/CSS_ZE_MOTD.html");
|
KvSetString(panel, "msg", "https://unloze.com/motd/CSS_ZE_MOTD.html");
|
||||||
ShowVGUIPanel(client, "info", panel, false);
|
ShowVGUIPanel(client, "info", panel, false);
|
||||||
CloseHandle(panel);
|
CloseHandle(panel);
|
||||||
CreateTimer(5.0, SQL_Select_fingerprints, GetClientSerial(client));
|
CreateTimer(5.0, SQL_Select_fingerprints, Serial);
|
||||||
}
|
}
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
@ -184,7 +184,7 @@ public Action SQL_Select_fingerprints(Handle hTimer, int Serial)
|
|||||||
GetClientAuthId(client, AuthId_Steam2, sSID, sizeof(sSID));
|
GetClientAuthId(client, AuthId_Steam2, sSID, sizeof(sSID));
|
||||||
Format(sQuery, sizeof(sQuery), "select fingerprint from ban_detector.ban_detector where steamid = '%s'", sSID);
|
Format(sQuery, sizeof(sQuery), "select fingerprint from ban_detector.ban_detector where steamid = '%s'", sSID);
|
||||||
//PrintToChatAll("sQuery: %s", sQuery);
|
//PrintToChatAll("sQuery: %s", sQuery);
|
||||||
g_dDatabase.Query(SQL_FindFingerPrints, sQuery, GetClientSerial(client), DBPrio_Low);
|
g_dDatabase.Query(SQL_FindFingerPrints, sQuery, Serial, DBPrio_Low);
|
||||||
}
|
}
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
@ -237,7 +237,7 @@ public void SQL_FindFingerPrints(Database db, DBResultSet results, const char[]
|
|||||||
//LogError("LOOK HERE: %s", sQuery);
|
//LogError("LOOK HERE: %s", sQuery);
|
||||||
if (!first)
|
if (!first)
|
||||||
{
|
{
|
||||||
g_dDatabase.Query(sql_select_sb_bans, sQuery, GetClientSerial(client), DBPrio_Low);
|
g_dDatabase.Query(sql_select_sb_bans, sQuery, Serial, DBPrio_Low);
|
||||||
}
|
}
|
||||||
delete results;
|
delete results;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user