SA-MP Forums Archive
Can someone explain me this - 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: Can someone explain me this (/showthread.php?tid=469849)



Can someone explain me this - efrim123 - 15.10.2013

How much time is that means??
someone gave me it and i dont know how much time does it takes

pawn Код:
SetTimer("ShopRobAgain", 1000*6*2, 0);



Re: Can someone explain me this - EiresJason - 15.10.2013

12 seconds.


Re: Can someone explain me this - efrim123 - 15.10.2013

Сan you make it 6 mins for me


Re: Can someone explain me this - EiresJason - 15.10.2013

pawn Код:
SetTimer("ShopRobAgain", 360000, 0);



Re: Can someone explain me this - efrim123 - 15.10.2013

Thanks


Re: Can someone explain me this - EiresJason - 15.10.2013

Np


Re: Can someone explain me this - Ayumi - 15.10.2013

pawn Код:
SetTimer("ShopRobAgain", 360000, 0);
There you go.

The * symbol means 'x' within mathematics - by 'x' I mean times. So 5*5 would be 25, as its the same as 5x5.
"SetTimer" works within milliseconds, so 1000 milliseconds = 1 second, then * it by 60 = 60 seconds (1 minute), * 6 = 6 minutes (360000 milliseconds).

Edit: he beat me to it. Anyway, enjoy the little explenation.