MySQL spams when admin types /saveall
#5

Here's a small optimization:
pawn Код:
CMD:saveall(playerid, params[])
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
         savePlayer(i);
    }
    SendClientMessageToAll(COLOR_YELLOW, "All player stats have been saved!");
    return 1;
}
Reply


Messages In This Thread
MySQL spams when admin types /saveall - by Elysian` - 07.07.2012, 15:38
Re: MySQL spams when admin types /saveall - by coole210 - 07.07.2012, 15:56
Re: MySQL spams when admin types /saveall - by FireCat - 07.07.2012, 15:57
Re: MySQL spams when admin types /saveall - by Elysian` - 07.07.2012, 15:58
Re: MySQL spams when admin types /saveall - by FireCat - 07.07.2012, 16:04
Re: MySQL spams when admin types /saveall - by Elysian` - 07.07.2012, 16:11

Forum Jump:


Users browsing this thread: 1 Guest(s)