Display health value without decimals
#1

I've made a code that views the player's health in numbers, but it says 100.000000.
How to show it as 100 (without the decimals)?
Reply
#2

https://sampwiki.blast.hk/wiki/Floatround
Reply
#3

%0.0f - 0 decimal places
%0.1f - 1 decimal places
%0.2f - 2 decimal places
%0.3f - 3 decimal places

etc constantly repeated...
Reply
#4

Thanks, Lorenc_.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)