16.03.2012, 21:27
Yes but you don't need
this. It does exactly the same thing and faster.
pawn Code:
if(seconds>9) format(string,sizeof(string),"%d:%d",minutes,seconds);
else format(string,sizeof(string),"%d:0%d",minutes,seconds);
pawn Code:
format(string,sizeof(string),"%d:%02d",minutes,seconds);