SA-MP Forums Archive
Would this be proper? - 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: Would this be proper? (/showthread.php?tid=245568)



Would this be proper? - ronnie3148 - 31.03.2011

Hey I want to set a timer for a random time between 5 min and 1 hour and wondering if this would the be proper way of doing it?

Код:
	new mrand = 300000 + random(3600000);
	SetTimer("SpawnFire",mrand,true);



Re: Would this be proper? - mprofitt - 31.03.2011

looks kosher to me


Re: Would this be proper? - sciman001 - 01.04.2011

yes it's right.


Re: Would this be proper? - bigcomfycouch - 01.04.2011

Change the 3600000 to 3300000. A potential 60 minutes + 5 minutes is more than 'between 5 min and 1 hour'.