16.02.2014, 13:02
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
Here is the error
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;
}
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.