Armour and Health
#1

Quick Question how do I only show health and armour as 64 or 100 and not 64.00000

pawn Code:
new Float: SH, Float: SA;
                GetPlayerHealth(id, SH);
                GetPlayerArmour(id, SA);
                format(string, sizeof(string), "Name: %s, ID: %d, Health: %f, Armour: %f, Money: %d", RPName(id), id, SH, SA, GetPlayerMoney(id));
Do I need to change the %f to %d or will it bug since health is a float?
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: 1 Guest(s)