07.07.2012, 16:04
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;
}