1 ERROR { HELP }
#1

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;

Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)