25.03.2012, 11:35
Hi. In short;
What happens;
(10 hp ;o)
What I meant to;
(100 default and +10 HP from .ini [pHP] so 110 hp. As you know we can't see it in bar)
Can anyone explain me what is the problem in code?
Код:
SetPlayerHealth(playerid,100); new Float:health; GetPlayerHealth(playerid,health); new Float:maxhealth = PlayerInfo[playerid][pHP]; if(PlayerInfo[playerid][pHP] > 0) return SetPlayerHealth(playerid,health+maxhealth);
(10 hp ;o)
What I meant to;
(100 default and +10 HP from .ini [pHP] so 110 hp. As you know we can't see it in bar)
Can anyone explain me what is the problem in code?