SA-MP Forums Archive
error 25? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 25? (/showthread.php?tid=602761)



error 25? - alexanderjb918 - 12.03.2016

Код:
: error 025: function heading differs from prototype
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    if((0 <= weaponid <= 46) || weaponid == 54)
    {
      if(BODY_PART_TORSO <= bodypart <= BODY_PART_HEAD) Damage[playerid][(bodypart - 3)][weaponid]++;
    }
	else if(PlayerIsWounded(playerid))
	{
		SetPlayerHealth(playerid, 1000.0);
	}
    return 1;
}
 line

public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)



Re: error 25? - zPain - 12.03.2016

Are you using a version that is older than 0.3z? If so, read this.

Quote:
bodypart The body part that was hit. (NOTE: This parameter was added in 0.3z. Leave it out if using an older version!)