I Hate Timers :(
#3

Quote:
Originally Posted by RALL0
Посмотреть сообщение
Try replacing
Код:
foreach (new i : Player)
with this
Код:
foreach(Player, i)
And about the lag, it's because you use 100 miliseconds it would be better if you'd use 1000 like this
Код:
SetTimerEx("Speedometer", 1000, true, "d", i);
I dont know i downloaded the new foreach: https://sampforum.blast.hk/showthread.php?tid=92679 and i found from there that i should put foreach (new i : Player)...

I know that the speed of the timer is causing lag, but i want to make it global Timer because now its a timer per player (SetTimerEx) and it starts 50 times (my server is 50 slots), But when i make it global Timer the timer doesn't work with foreach... One timer is better than 50 timers

So my question is how to make it global timer and to work like it works now...
Reply


Messages In This Thread
I Hate Timers :( - by NeroX98 - 11.06.2013, 20:36
Re: I Hate Timers :( - by RALL0 - 11.06.2013, 20:47
Re: I Hate Timers :( - by NeroX98 - 11.06.2013, 20:53
Re: I Hate Timers :( - by Aly - 11.06.2013, 20:58
Re: I Hate Timers :( - by NeroX98 - 11.06.2013, 21:02
Re: I Hate Timers :( - by RALL0 - 11.06.2013, 21:02
Re: I Hate Timers :( - by Aly - 11.06.2013, 21:08

Forum Jump:


Users browsing this thread: 1 Guest(s)