SA-MP Forums Archive
Get time taken - 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: Get time taken (/showthread.php?tid=109755)



Get time taken - mini-d - 22.11.2009

I know this is probably the easiest thing to do, however how could I check to see how much time has passed then put it in a string? * I I know the string part, just need help on getting how much time has passed*


Re: Get time taken - dice7 - 22.11.2009

https://sampwiki.blast.hk/wiki/SetTimer


Re: Get time taken - mini-d - 22.11.2009

I realised there would be a timer, though I will need more info on this, thanks for trying to help. :P


Re: Get time taken - dice7 - 22.11.2009

The wiki has an example. But if the time it takes depends on the player, then make a repeative timer (third parameter = true) and make it check a variable. If the variable is 0, then the player hasn't done yet what it should, else it will be 1 and you can kill the timer with KillTimer().