GetPlayerArmour as float - 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)
+--- Thread: GetPlayerArmour as float (
/showthread.php?tid=618173)
GetPlayerArmour as float -
Bondz - 02.10.2016
When I use get player armour,the result is kinda like this:
how do i reduce the number after dot?
Re: GetPlayerArmour as float -
Rdx - 02.10.2016
If you dont need any zeros, convert to int:
https://sampwiki.blast.hk/wiki/Floatround
Or if you want less number of zeros, format as "%0.2f". 2 is number of zeros after dot.