SA-MP Forums Archive
How to convert Float into value - 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: How to convert Float into value (/showthread.php?tid=412332)



How to convert Float into value - dr.lozer - 01.02.2013

how to convert Float into value like:

100.0000 into 100

coz i made a textdraw that shows health value so i tried %s %d %i and it didn't helped me

Any help please?


Re: How to convert Float into value - Vince - 01.02.2013

pawn Код:
%.0f
Either that, or use floatround.


Re: How to convert Float into value - CoaPsyFactor - 01.02.2013

Look for function floatround


Re: How to convert Float into value - dr.lozer - 02.02.2013

Thank you all