Showing seconds Question
#1

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.
Reply
#2

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
Reply
#3

thx.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)