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