Showing seconds Question - 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: Showing seconds Question (
/showthread.php?tid=372748)
Showing seconds Question -
andrew2695 - 28.08.2012
I'm using a countdown with a textdraw and when it goes below 10 seconds it show up as Ex: 1 minute and 5 seconds is 1:5 and I would like to know how to make it show up as 1:05.
Re: Showing seconds Question -
lamarr007 - 28.08.2012
Hm, try this:
pawn Код:
format(string, sizeof(string), "%d:%02d", vMinutes, vSeconds);
//vMinutes is your variable with minutes
//vSeconds is your variable with seconds
//string is your formatted string to show
Re : Showing seconds Question -
andrew2695 - 28.08.2012
thx.