Quote:
Originally Posted by JocAnis
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 i = 0; i <= 32; i++){
if(!is_user_bot(i) && is_user_connected(i)){
UpdatePlayerTimePlayed(i);
}
}
}