An error headshot system
#1

Hello, i'm tring to do headshot system only for sniper, but it won't work with me, and giving me one 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;
}
Error
pawn Код:
(7981) : error 025: function heading differs from prototype
Reply


Messages In This Thread
An error headshot system - by Rabea - 02.01.2015, 11:33
Re: An error headshot system - by ATGOggy - 02.01.2015, 11:39
Re: An error headshot system - by FunnyBear - 02.01.2015, 11:46
Re: An error headshot system - by Sawalha - 02.01.2015, 11:52
Re: An error headshot system - by FunnyBear - 02.01.2015, 11:57
Re: An error headshot system - by Rabea - 02.01.2015, 12:02
Re: An error headshot system - by FunnyBear - 02.01.2015, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)