Health shows 100.000000
#2

Turn the float into an integer using floatround. So you might end up with something like this:
pawn Код:
new str1[24],Float:health;
GetPlayerHealth(playerid,health);
fomat(str1,sizeof(str1),"Health: %i",floatround(health,floatround_round));
Reply


Messages In This Thread
Health shows 100.000000 - by AphexCCFC - 10.02.2013, 23:08
Re: Health shows 100.000000 - by zDevon - 10.02.2013, 23:13
Re: Health shows 100.000000 - by Jefff - 10.02.2013, 23:28
Re: Health shows 100.000000 - by AphexCCFC - 10.02.2013, 23:32
Re: Health shows 100.000000 - by MP2 - 10.02.2013, 23:35
Re: Health shows 100.000000 - by AphexCCFC - 10.02.2013, 23:38
Re: Health shows 100.000000 - by zDevon - 10.02.2013, 23:39
Re: Health shows 100.000000 - by AphexCCFC - 10.02.2013, 23:41
Re: Health shows 100.000000 - by AphexCCFC - 10.02.2013, 23:47
Re: Health shows 100.000000 - by zDevon - 10.02.2013, 23:50

Forum Jump:


Users browsing this thread: 1 Guest(s)