#1

so i have a message that tells you how many kilometers you`ve done.

PHP код:
 made a total of  %d km. .", PGarbageCurrent[playerid]/1000 
but it doesnt sho as this format : 1.234 KM . How to format it to show like that?
Reply
#2

Use '%f' (float) instead of '%d' (integer)
Reply
#3

Also, you can use
PHP код:
 "made a total of  %.1f km" // will show 1.2 KM
"made a total of  %.2f km" // will show 1.23 KM 
Reply
#4

i used a function called decimal,thank you all !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)