GetPlayerArmour as float
#1

When I use get player armour,the result is kinda like this:

PHP код:
ARMOUR:100.0000 
how do i reduce the number after dot?
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)