function heading differs from prototype
#1

I keep getting "error 025: function heading differs from prototype" on the following and I can't figure out what's wrong!

This is my code:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && PlayerInfo[playerid][pAdminDuty] != 1)
    {
        SetPlayerHealth(playerid, 0.0) // One shot to kill with sniper rifle
    }
    new Float:health;
    GetPlayerHealth(playerid,health);
    if (health < 20.0)
    {
        DeathOnTimer[playerid] = SetTimerEx("DeathTimer",22000,true, "i", playerid);
    }
}
I get it on this line:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
Anyone know? I have been trying to figure this out for a while, so maybe someone here can help. Yes a_samp is defined.

Thanks: jakejohnsonusa
Reply


Messages In This Thread
function heading differs from prototype - by jakejohnsonusa - 13.03.2013, 21:52
Re: function heading differs from prototype - by Scenario - 13.03.2013, 21:56
Re: function heading differs from prototype - by jakejohnsonusa - 13.03.2013, 21:58
Re: function heading differs from prototype - by Patrick - 13.03.2013, 21:59
Re: function heading differs from prototype - by jakejohnsonusa - 13.03.2013, 22:09
Re: function heading differs from prototype - by Patrick - 13.03.2013, 22:16
Re: function heading differs from prototype - by jakejohnsonusa - 13.03.2013, 22:18
Re: function heading differs from prototype - by ReneG - 13.03.2013, 22:42

Forum Jump:


Users browsing this thread: 1 Guest(s)