02.01.2015, 11:33
Hello, i'm tring to do headshot system only for sniper, but it won't work with me, and giving me one Error.
Code
Error
Code
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) // this line is 7981
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
{
SetPlayerHealth(playerid, 0);
SetPlayerArmour(playerid, 0);
}
return 1;
}
pawn Код:
(7981) : error 025: function heading differs from prototype