Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Server doesnt let more than 10 players to log in (mysql bug)

$
0
0
Hi all, i'm trying to make a event point system, /winers based in mysql.
So yea heres the command.

PHP Code:

CMD:winers(playeridparmas[])
{
    
mysql_tquery(sql_connect"SELECT * FROM `users` ORDER BY `eventpoints` DESC LIMIT 10""OnQueryFinishup""ii"THREAD_EVENTWINERplayerid);
    return 
1;
}

        case 
THREAD_EVENTWINER:
        {
            new 
username[MAX_PLAYER_NAME], eventpoints[24];

            
SendClientMessage(extraidCOLOR_GREEN"---- Event Winners ----");

            for(new 
0rows++)
            {
                
cache_get_field_content(i"username"username);
                
cache_get_field_content(i"eventpoints"eventpoints);
                
SendClientMessageEx(extraidCOLOR_GREY2"%s - Event points: %d"usernameeventpoints);
            }
        } 

Now everything runs fine, there's no mysql error given i cant get more than 10 players in the server, it start crashing the others for some reason, probably i missed up something?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>