Y_INI Save stats on 10-Seconds
#9

Quote:
Originally Posted by gtakillerIV
Посмотреть сообщение
Why not just make one timer instead of like 50+ to save the player's stats?
and this is another way.
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);
}
}
}
Reply


Messages In This Thread
Y_INI Save stats on 10-Seconds - by Bug. - 29.10.2012, 14:53
Re: Y_INI Save stats on 10-Seconds - by playbox12 - 29.10.2012, 14:57
Re: Y_INI Save stats on 10-Seconds - by gtakillerIV - 29.10.2012, 14:59
Re: Y_INI Save stats on 10-Seconds - by Bug. - 29.10.2012, 15:00
Re: Y_INI Save stats on 10-Seconds - by [D]ry[D]esert - 29.10.2012, 15:03
Re: Y_INI Save stats on 10-Seconds - by Bug. - 29.10.2012, 15:07
Re: Y_INI Save stats on 10-Seconds - by gtakillerIV - 29.10.2012, 15:09
Re: Y_INI Save stats on 10-Seconds - by Lordzy - 29.10.2012, 15:12
Re: Y_INI Save stats on 10-Seconds - by [D]ry[D]esert - 29.10.2012, 15:18
Re: Y_INI Save stats on 10-Seconds - by [D]ry[D]esert - 29.10.2012, 15:35

Forum Jump:


Users browsing this thread: 2 Guest(s)