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)
+--- Thread: Timer (/showthread.php?tid=617150)



Timer - StR_MaRy - 16.09.2016

Hey guys i did a textdraw timer for a rob but is staying at 30 like Rob time: 30 and isn't going down the sistem is like this

Код HTML:
new RobSec = 0;

RobSec = 0; //this is after you complete to set timer 0

RobSec = 30; //this is after you use /robbank

format(string, sizeof(string), "Time Left: ~y~%02d:%02d", RobSec);
PlayerTextDrawSetString(playerid, Rob2Text[playerid], string); //this is under "RobSec = 30;" at /robbank cmd
why isn't working ?


Re: Timer - JordanZaundd - 16.09.2016

Make a timer that calls to a function that does RobSec--; and PlayerTextDrawSetString. Right now the timer will not go down because you do not have anything telling the timer to decrease.

I helped you with this already once: http://forum.sa-mp.com/showthread.ph...18#post3767118


Re: Timer - StR_MaRy - 16.09.2016

ok ,thx