How mutch time... - 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: How mutch time... (
/showthread.php?tid=306445)
How mutch time... -
Gooday - 26.12.2011
What number i have to write for give the message every 24 mins?
*I made the script but i dunno the "conversion time" if i write 30 i got every second a message :/
Re: How mutch time... -
sansko - 26.12.2011
1 millisecond
*1000 = 1 Second
*60 = 1 Min
*24 =24 min
so just use 1000*60*24 and u have your delay
Re: How mutch time... -
Ash. - 26.12.2011
I always cheat when it comes to things like this. So I don't have to do the calculation, I get the PAWN pre-processor to do it.
pawn Код:
SetTimer("Func", ((1000*60)*24), false);
(1000*60) = 60000 = 1 minute.
60000 * 24 = 24 minutes.
((1000*60)*24) = 24 minutes.
Simples!