Hi, everybody. How are you?
I currently have over 400 players registered on my server and some people report that they have lost their points. I identified in the database log that the ID's were replaced by STEAM_ID_STOP_IGNORING_RETVALS. Please, can anyone help me? Below is the excerpt that I believe is the problem.
I read in some places that it may be necessary to update the SM. Even using the latest one, the problem remains.
Code:
public OnClientPutInServer(client) {
if(!IsFakeClient(client)) {
decl String:clientid[32], String:query[256];
new userid = GetClientUserId(client);
GetClientAuthId(client, AuthId_Steam2, clientid, sizeof(clientid));
Format(query, sizeof(query), "SELECT rating,kills,deaths,notify FROM elostats WHERE steamid='%s'", clientid);
SQL_TQuery(db, SQLQueryConnect, query, userid);
sessionrating[client] = 0;
sessionkills[client] = 0;
sessiondeaths[client] = 0;
}
}