27.11.2017, 20:32
Beforehand sorry for my eng.
Hello everybody!
I need your help! So I've created for example new textdraw, and if I set up player health 255 it shows me 255, but when I set up 256 it shows me 1 (2 means - 257, 3 - 258 etc.) How can I get this more hp by using format? Maybe smth. like that
help me
Hello everybody!

I need your help! So I've created for example new textdraw, and if I set up player health 255 it shows me 255, but when I set up 256 it shows me 1 (2 means - 257, 3 - 258 etc.) How can I get this more hp by using format? Maybe smth. like that
PHP код:
new Float: health, str[ 256+1 ];
GetPlayerHealth(playerid, health);
format( str, sizeof( str ), "%.0f", health/10);
TextDrawSetString(bla... bla... bla...);
