Quote:
Originally Posted by Alternative112
Код:
SetPlayerHealth(playerid,100.0); //SetPlayerHealth wants floats.
new Float:health;
GetPlayerHealth(playerid, health);
new Float:maxhealth;
maxhealth = PlayerInfo[playerid][pHP];
if(maxhealth > 0) return SetPlayerHealth(playerid, health + maxhealth);
Not sure why you're using PlayerInfo[playerid][pHP] in your if statement since you are setting it as the value of maxhealth...Try this. If that doesn't work, try making a separate float for health + maxhealth, and just putting that as the second argument for your SetPlayerHealth.
|
Thanks but still same problem, I have removed it cause begin think useless feature on gamemode.