Health set
#2

Syntax for GetPlayerHealth:
Код:
GetPlayerHealth(playerid, Float:&Health);
You need to save the parameter 'Health' to another variable like so.
pawn Код:
if(issuerid != INVALID_PLAYER_ID && weaponid == 34)
{
    new Float:health;
    GetPlayerHealth(playerid, health); //We're saving it to our new Float:health variable.
    SetPlayerHealth(playerid, (health - 50));
    return 1;
}
Reply


Messages In This Thread
Health set - by DaRk_RaiN - 24.09.2012, 21:38
Re: Health set - by clarencecuzz - 24.09.2012, 21:55
Re: Health set - by DaRk_RaiN - 25.09.2012, 21:45
Re: Health set - by clarencecuzz - 26.09.2012, 00:54
Re: Health set - by ikbenremco - 26.09.2012, 05:08
Re: Health set - by DaRk_RaiN - 26.09.2012, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)