SetTimerEx [SOLVED] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetTimerEx [SOLVED] (
/showthread.php?tid=570061)
SetTimerEx [SOLVED] -
MotherDucker - 05.04.2015
Hello, just a quick question;
I am making a timer which will wait for 0.5 seconds and then kick the player.
I am using a SetTimerEx to then call my KickPlayer function, will I need to use KillTimer within the KickPlayer function, or will it stop automatically?
Re: SetTimerEx -
DRIFT_HUNTER - 05.04.2015
If you set your repeating argument to false or 0 than you dont need to use KillTimer. It will be executed only once and thats it.
KillTimer function is there only for timer that are repeating non stop, and you use KillTimer function to stop them.
Re: SetTimerEx -
MotherDucker - 05.04.2015
Quote:
Originally Posted by DRIFT_HUNTER
If you set your repeating argument to false or 0 than you dont need to use KillTimer. It will be executed only once and thats it.
KillTimer function is there only for timer that are repeating non stop, and you use KillTimer function to stop them.
|
Ahh alright, thanks a lot; wasn't really sure of what the argument was about, but now I do.