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=132054)



timer - 02manchestera - 06.03.2010

Код:
SetTimer("Event", 1000 * 60 * 30, true);
i got given this but not sure what each nunmber means


Re: timer - Rzzr - 06.03.2010

Event = The function to execute
1000 * 60 * 30 = How long the timer will take before executing it in milliseconds
True = Will it repeat or not? True means it will and False means it won't

You might also find this useful:
https://sampwiki.blast.hk/wiki/SetTimer


Re: timer - 02manchestera - 06.03.2010

So why is there 3 numbers not one does first one mean how long between 2nd one how long the even is or something


Re: timer - Rzzr - 06.03.2010

You mean this? 1000 * 60 * 30
It is a calculation ;p
1000 times 60 times 30 = 1800000 milliseconds


Re: timer - 02manchestera - 06.03.2010

oh kk thanks