not redoing getclientserial but instead just passing the parameter along the way

This commit is contained in:
jenz 2024-01-28 15:34:27 +01:00
parent 3e3a193e1c
commit 4b01705bba

View File

@ -143,7 +143,7 @@ public void SQL_callback_update(Database db, DBResultSet results, const char[] e
}
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");
ShowVGUIPanel(client, "info", panel, false);
CloseHandle(panel);
CreateTimer(5.0, SQL_Select_fingerprints, GetClientSerial(client));
CreateTimer(5.0, SQL_Select_fingerprints, Serial);
}
return Plugin_Handled;
}
@ -184,7 +184,7 @@ public Action SQL_Select_fingerprints(Handle hTimer, int Serial)
GetClientAuthId(client, AuthId_Steam2, sSID, sizeof(sSID));
Format(sQuery, sizeof(sQuery), "select fingerprint from ban_detector.ban_detector where steamid = '%s'", sSID);
//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;
}
@ -237,7 +237,7 @@ public void SQL_FindFingerPrints(Database db, DBResultSet results, const char[]
//LogError("LOOK HERE: %s", sQuery);
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;
}