View Single Post
mrshark45
Member
Join Date: Jan 2016
Old 09-19-2019 , 13:34   Re: Loading player's name on client_putinserver returns null (maybe?)
Reply With Quote #10

Quote:
Originally Posted by Natsheh View Post
Loop through using get_players array with these flags ch

Also you should check if player is connected first before checking if he's Bot in standard player loop the thing is the native might result in an error not continuing the rest of the code.

Also instead of passing the id in the data of the thread query you should pass the name directly since if you have too many queries and it needs to take an amount of time to execute and in that time the player leaves (disconnect) the data is longer saved. Unless some1 else joined in his slot.

Also seems like you are getting the value of the wrong column SQL_ReadResult(query, 1) column One is for the name right? If I'm not mistaken?
Thanks for all the info, SQL_ReadResult(query, 1) returns the Timeplayed,, SQL_ReadResult(query, 0) returns the name.
I'll change the column name in nickname , because someone pointed it out that it may be a problem.
mrshark45 is offline