Armour and Health
#7

Quote:
Originally Posted by _Zeus
View Post
Leave it as it is (float) and format it with the below placeholder.
pawn Code:
%.0f
Or you could just use floatround
pawn Code:
new Float: SH, Float: SA;
                GetPlayerHealth(id, SH);
                GetPlayerArmour(id, SA);
                //new SpecHealth = _:SH;
                //new SpecArmour = _:SA;
                format(string, sizeof(string), "Name: %s, ID: %d, Health: %d, Armour: %d, Money: %d", RPName(id), id, floatround(SpecHealth), floatround(SpecArmour), GetPlayerMoney(id));
Reply


Messages In This Thread
Armour and Health - by Stefand - 01.06.2013, 08:02
Re: Armour and Health - by mahdi499 - 01.06.2013, 08:04
Re: Armour and Health - by DetoNater - 01.06.2013, 08:04
Re: Armour and Health - by nmader - 01.06.2013, 08:07
Re: Armour and Health - by Stefand - 01.06.2013, 08:14
Re: Armour and Health - by Konstantinos - 01.06.2013, 08:34
Re: Armour and Health - by DaRk_RaiN - 01.06.2013, 08:37
Re: Armour and Health - by Vince - 01.06.2013, 09:54

Forum Jump:


Users browsing this thread: 3 Guest(s)