24.09.2012, 21:55
Syntax for GetPlayerHealth:
You need to save the parameter 'Health' to another variable like so.
Код:
GetPlayerHealth(playerid, Float:&Health);
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;
}