Timer Bug
#5

Quote:
Originally Posted by dusk
Посмотреть сообщение
No, both SetTimerEx AND SetTimerEx can be used for repeating and non-repeating timers.

They will be repeating if you set the 3rd parameter to true.
pawn Код:
SetTimer("AFunction", 1000, true); // a repeating timer
SetTimer("AFunction", 1000, false); // a non repeating timer
SetTimerEx("AFunction", 1000, true, "i", 5); // a repeating timer
SetTimerEx("AFunction", 1000, false, "i", 5); // a non repeating timer

And that's not how you use KillTimer. SetTimer and SetTimerEx return timer IDs, which are neede in KillTimer. For example:

pawn Код:
new timerid = SetTimer("AFunction", 1000, true);
KillTimer(timerid);
oh ok got it, thanks for info I am new on timers, to be honest its my first timer xD thanks for all the info +rep for you
Reply


Messages In This Thread
Timer Bug - by SecretBoss - 08.07.2015, 14:29
Re: Timer Bug - by dusk - 08.07.2015, 14:36
Re: Timer Bug - by SecretBoss - 08.07.2015, 14:39
Re: Timer Bug - by dusk - 08.07.2015, 14:43
Re: Timer Bug - by SecretBoss - 08.07.2015, 14:48

Forum Jump:


Users browsing this thread: 2 Guest(s)