function heading differs from prototype
#1

err: function heading differs from prototype

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;
}
Reply
#2

The number of arguments given at a previous declaration of the function does not match the number of arguments given at the current declaration.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)