variables 3 min to 0 - 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: variables 3 min to 0 (
/showthread.php?tid=78122)
variables 3 min to 0 -
Rks25 - 17.05.2009
I need to reduce variables of 3 minutes to 0, and each time it reaches 2 or 1 minute, alarm it with an if() statement, how would i do that?
new minutes = 3;
new seconds = 60;
seconds --;
if(seconds == 0) return minutes--;
?
Re: variables 3 min to 0 -
yom - 17.05.2009
Inside your if(seconds == 0), which is true when a minute has passed
Re: variables 3 min to 0 -
Rks25 - 17.05.2009
than in that if() statement i should place:
minutes--;
seconds= 60;??
Re: variables 3 min to 0 -
Rks25 - 17.05.2009
anyonee?