2 digits
#1

I have this:

pawn Код:
format(string, sizeof string, "%02d:%02d.%02d", Minutes, Seconds, Milliseconds);
What it does is pretty self-explanatory.
Anyway, the milliseconds are always 3 digits long.
For example: .734. How can i make sure that it is (shown as) 2 digits long?
So instead of .734 it will show .73
Reply
#2

pawn Код:
Milliseconds /= 10;
Will always show the milliseconds as a number between 0-99
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)