Raised This Month: $ Target: $400
 0% 

Loading player's name on client_putinserver returns null (maybe?)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-19-2019 , 01:01   Re: Loading player's name on client_putinserver returns null (maybe?)
Reply With Quote #1

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?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 09-19-2019 at 01:13.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 #2

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
mrshark45
Member
Join Date: Jan 2016
Old 09-19-2019 , 13:37   Re: Loading player's name on client_putinserver returns null (maybe?)
Reply With Quote #3

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?
And I pass the data to load the timeplayed so I need to pass the id so I can acces the variable TimePlayed[id], I can't pass the name.
mrshark45 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 17:19.


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