21.01.2012, 01:41
your described method sonds good. just rescript it
about the position value: i asume you want to format theplayers position (float) as a string, for displaying it properly in a textdraw. thats why you want leading zeros? hence the playerpositions are in the 1000's, not 100's. like
outputs a positon as "Pos:0000.000", where your 000.000 string matches the format "%03.03f"
about the position value: i asume you want to format theplayers position (float) as a string, for displaying it properly in a textdraw. thats why you want leading zeros? hence the playerpositions are in the 1000's, not 100's. like
pawn Код:
format(string,sizeof(string),"PosX:%04.03f",X);