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
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-18-2019 , 11:24   Re: Loading player's name on client_putinserver returns null (maybe?)
Reply With Quote #1

you are doing loop through all players...i tryed to tell you: do one query with the loop into that query, but whatever..

also about colum which is named Name, if i remember correctly some years ago Bugsy stated to better change its name
reason: mysql by default has something with column 'name' or something like
solution: change column name
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
mrshark45
Member
Join Date: Jan 2016
Old 09-18-2019 , 13:38   Re: Loading player's name on client_putinserver returns null (maybe?)
Reply With Quote #2

Quote:
Originally Posted by JocAnis View Post
you are doing loop through all players...i tryed to tell you: do one query with the loop into that query, but whatever..

also about colum which is named Name, if i remember correctly some years ago Bugsy stated to better change its name
reason: mysql by default has something with column 'name' or something like
solution: change column name
Ok, I'll try to change the column name, but I still don't get what you want to say about the query in round end
PHP Code:
public plugin_init(){
     
register_logevent"EventRoundEnd"2"1=Round_End" );
}


public 
EventRoundEnd(){
     for(new 
0<= 32i++){
        if(!
is_user_bot(i) && is_user_connected(i)){
            
UpdatePlayerTimePlayed(i);
        }
    }

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