Raised This Month: $51 Target: $400
 12% 

ELO Ranking


Post New Thread Reply   
 
Thread Tools Display Modes
papel
Junior Member
Join Date: Jul 2017
Old 08-03-2020 , 10:28   Re: ELO Ranking
Reply With Quote #81

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;
	}
}

Last edited by papel; 08-03-2020 at 10:34.
papel is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode