SA-MP Forums Archive
1 ERROR { HELP } - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 1 ERROR { HELP } (/showthread.php?tid=621685)



1 ERROR { HELP } - RedRex - 13.11.2016

Why i have this error? ....


the ERROR CODE
Код:
error 025: function heading differs from prototype
PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    if(
issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33) && bodypart == 9)//check if the shooter shoot in sniper and check if shoot in head
    
{
    
PlayAudioStreamForPlayer(playerid"http://soundcli.ps/download/1639.mp3");// play music for who killed.
    
PlayAudioStreamForPlayer(issuerid"http://soundcli.ps/download/1639.mp3");// play music for killer.
    
SetPlayerHealth(playerid0.0);//kill player
    
GameTextForPlayer(issuerid"~r~Head shot!"30006);
    
GameTextForPlayer(playerid"~r~Head shot!"30006);
    
SetPlayerScore(issueridGetPlayerScore(issuerid) + 2);//give +2 score for killer.
    
SendClientMessage(issueridCOLOR_GREEN,"You get +2 score for killing in headshot");
    }
    return 
1;




Re: 1 ERROR { HELP } - Speaker - 13.11.2016

See this https://sampforum.blast.hk/showthread.php?tid=488198