29.10.2012, 15:18
Quote:
Why not just make one timer instead of like 50+ to save the player's stats?
|
pawn Код:
OnPlayerGamemodeInt()
{
SetTimer("savestats",10000,true);
//other codes here
}
forward savestats();
public savestats()
{
for (new i = 0; i != MAX_PLAYERS; ++i)
{
if (IsPlayerConnected(i))
{
SaveStats(i);
}
}
}