Countdown> 9:3 to 09:03
#1

Hey guys,

Im making a countdown, but the numbers are displaying wrong.

Right now, when the timer is at 9 minutes and 3 seconds (for example), it shows like "9:3". I want it to show like this: "09:03", "02:41". I know ive did this before, but i kinda forgot how i did this. Anyone mind helping me? Tyty

pawn Код:
format( ppString, sizeof ppString, "Time: %d:%d", minutes, seconds );
~Wesley
Reply
#2

pawn Код:
format( ppString, sizeof ppString, "Time: %02d:%02d", minutes, seconds );
Reply
#3

Thanks

Ive already tried it with %0.2d, but guess thats for floats only
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)