SA-MP Forums Archive
timer - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: timer (/showthread.php?tid=177635)



timer - FireCat - 18.09.2010

whats the diference between ex:
Quote:

SetTimer("daytime", 1, true);

and
Quote:

SetTimer("daytime", 1, false);

i see on wiki false that means it dosnt load the timer but in game it does(i think)
so whats the true for?

this image is on sa-mp wiki here


Re: timer - Conroy - 18.09.2010

True means the timer is repetitive.

False means the function is called once.


Re: timer - FireCat - 18.09.2010

ohhhhhh ok thats why my fix car timer dosnt work xD


Re: timer - Macluawn - 18.09.2010

its not very smart using "1" in a timer. it will call it 1000 per second whitch will take massive CPU usage.