Problem with timer
#2

PHP код:
// At the top of your script
new statstimer[MAX_PLAYERS];
// --
statstimer[playerid] = SetTimerEx("statsrefresh"1001"i"playerid);
KillTimer(statstimer[playerid]); 
Edited:
Whenever the player spawns, another timer for the same player will activate.. so you will have tons of timers running and it may cause lag. You should consider moving this on player connect.

But why do you refresh stats like this at all?
Reply


Messages In This Thread
Problem with timer - by wallen - 27.03.2018, 16:02
Re: Problem with timer - by kovac - 27.03.2018, 16:05
Re: Problem with timer - by wallen - 27.03.2018, 16:12
Re: Problem with timer - by kovac - 27.03.2018, 16:13
Re: Problem with timer - by wallen - 27.03.2018, 16:14

Forum Jump:


Users browsing this thread: 1 Guest(s)