09.12.2010, 02:04
(
Последний раз редактировалось Proxyded; 11.12.2010 в 15:40.
)
pawn Код:
format( myString, sizeof( myString ), " X = %04.02f~n~ Y = %04.02f~n~ Z = %04.02f~n~ A = %03.02f", c_x, c_y, c_z, c_a );
I want it to show like:
Quote:
X = 0960.01 Y = 1000.50 Z = 0007.08 A = 050.80 |
Thanks in advance.
EDIT#_____________________________________________ ______________
I am sorry, I should have explained a little more specific of what I wanted.
Imagine a digital clock:
Quote:
08:36 h 04:05 h |
Quote:
X = 0960.01 Y = 1000.50 Z = 0007.08 A = 050.80 |
That's why I mentioned that I managed to do it with integers, if you do:
pawn Код:
printf( "%03d", 12 );
Quote:
012 |