#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
#2

forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
Reply
#3

Do you have the latest 0.3z or 0.3x?
Reply
#4

Install the 0.3z server package.
Reply
#5

I have installed the newest package of samp and i checked a_samp to see if its all installed there and it is i dont know whats the problem
Reply
#6

Are you sure that is line 789?
Reply
#7

Yes i am %100 that the problems is with the callback and there is no reason for that to happen
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)