OnPlayerTakeDamage
#1

Hello so i made a one shot headshot with a sniper in OnPlayerTakeDamage callback
but it seems that i have a error

here is my code
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        SetPlayerHealth(playerid, 0.0);
        PlayAudioStreamForPlayer(issuerid,"http://audioformat.com/download/headshot.mp3");
    }
    return 1;
}
Here is the error
pawn Код:
TDMv1.0.pwn(789) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
OnPlayerTakeDamage - by DarkLored - 16.02.2014, 03:10
Re: OnPlayerTakeDamage - by DarkLored - 16.02.2014, 03:40
Re: OnPlayerTakeDamage - by Lordzy - 16.02.2014, 03:45
Re: OnPlayerTakeDamage - by DarkLored - 16.02.2014, 03:50
Re: OnPlayerTakeDamage - by DarkLored - 16.02.2014, 04:22
Re: OnPlayerTakeDamage - by Lordzy - 16.02.2014, 04:58
Re: OnPlayerTakeDamage - by DarkLored - 16.02.2014, 05:00
Re: OnPlayerTakeDamage - by burnuk - 16.02.2014, 23:22
Re: OnPlayerTakeDamage - by iJumbo - 17.02.2014, 09:23

Forum Jump:


Users browsing this thread: 1 Guest(s)