14.02.2015, 16:26
err: function heading differs from prototype
code:
code:
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
if(IsPlayerNPC(damagedid) && bodypart == 9)
{
SetRNPCHealth(damagedid, 0.0);
GameTextForPlayer(playerid, "~h~~r~Headshot!", 4000, 4);
SetPVarInt(damagedid,"ZombieHeadshot",1);
}
if(IsPlayerNPC(damagedid))
{
if(GetPlayerWeapon(playerid) == 34 && GetPlayerWeapon(playerid) == 33)
{
SetRNPCHealth(damagedid, GetRNPCHealth(damagedid)-65);
}
}
if(IsPlayerNPC(damagedid))
{
if(GetRNPCHealth(damagedid) == 0)
{
pInfo[playerid][pKills]++;
GivePlayerMoneyEx(playerid,400);
SendDeathMessage(playerid, damagedid, weaponid);
}
}
return 1;
}