Armour and Health
#5

Quote:
Originally Posted by nmader
View Post
pawn Code:
new Float:fMyFloat = 1.3;
new nSomeInt = _:fMyFloat;
 
//nSomeInt is now 1.
This should help, it converts floats into integers.
Not working..

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, SpecHealth, SpecArmour, GetPlayerMoney(id));
returns health in 1120403456
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: 2 Guest(s)