SA-MP Forums Archive
How can I do this... ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How can I do this... ? (/showthread.php?tid=180518)



How can I do this... ? - The_Moddler - 01.10.2010

So.. how can I do to make this
pawn Code:
format(string, 16, "Motor: %0.f%s", Float[i]/10, "%");
Look like 98.3% instead of 98%

Thanks


Re: How can I do this... ? - Jackster - 01.10.2010

98.3 us a bit fussy isent it?


Re: How can I do this... ? - The_Moddler - 01.10.2010

Quote:
Originally Posted by Jackster
View Post
98.3 us a bit fussy isent it?
Don't post if you are not answering me.


Re: How can I do this... ? - Calgon - 01.10.2010

Try this:
pawn Code:
format(string, 16, "Motor: %.2f%s", Float[i]/10, "%");



Re: How can I do this... ? - The_Moddler - 01.10.2010

Quote:
Originally Posted by Calgon
View Post
Try this:
pawn Code:
format(string, 16, "Motor: %.2f%s", Float[i]/10, "%");
Yep, thanks mate