Error 025
#1

I have the latest a_samp include.

PHP код:
error 025: function heading differs from prototype 
Here's the code.

PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    new 
Float:HPholder[1000];
    
GetPlayerHealth(playeridHP);
    if(
weaponid == 4SetPlayerHealth(playeridHP-30);
    if(
weaponid == 22SetPlayerHealth(playeridHP-25);
    if(
weaponid == 32SetPlayerHealth(playeridHP-25);
    if(
weaponid == 28SetPlayerHealth(playeridHP-25);
    if(
weaponid == 30SetPlayerHealth(playeridHP-30);
    if(
weaponid == 31SetPlayerHealth(playeridHP-21);
    if(
weaponid == 34SetPlayerHealth(playeridHP-70);
    if(
weaponid == 29SetPlayerHealth(playeridHP-25);
    if(
weaponid == 25SetPlayerHealth(playeridHP-40);
     if(!
IsPlayerConnected(playerid)) return 0;
      if(!
IsPlayerConnected(issuerid)) return 0;
      
       if(
issuerid != INVALID_PLAYER_ID)
       {
           if(
weaponid == || weaponid == || weaponid == || weaponid == || weaponid == || weaponid == ||
            
weaponid == || weaponid == || weaponid == || weaponid == 15)
           {
               
sInfo[playerid][Misc] += 1;
        }
       }
      if(
issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
       {
        
SetPlayerHealth(playerid0.0);
       }
      if(
issuerid != INVALID_PLAYER_ID && bodypart == 3)
       {
           if(
weaponid == 22 || weaponid == 23 || weaponid == 24 || weaponid == 25 || weaponid == 26 || weaponid == 27 ||
            
weaponid == 28 || weaponid == 29 || weaponid == 30 || weaponid == 31 || weaponid == 32 || weaponid == 33 || weaponid == 34)
           {
               
sInfo[playerid][Chest] += 1;
        }
       }
      if(
issuerid != INVALID_PLAYER_ID && bodypart == 4)
       {
           if(
weaponid == 22 || weaponid == 23 || weaponid == 24 || weaponid == 25 || weaponid == 26 || weaponid == 27 ||
            
weaponid == 28 || weaponid == 29 || weaponid == 30 || weaponid == 31 || weaponid == 32 || weaponid == 33 || weaponid == 34)
           {
               
sInfo[playerid][Crotch] += 1;
        }
       }
      if(
issuerid != INVALID_PLAYER_ID && bodypart == 5)
       {
           if(
weaponid == 22 || weaponid == 23 || weaponid == 24 || weaponid == 25 || weaponid == 26 || weaponid == 27 ||
            
weaponid == 28 || weaponid == 29 || weaponid == 30 || weaponid == 31 || weaponid == 32 || weaponid == 33 || weaponid == 34)
           {
               
sInfo[playerid][LArm] += 1;
        }
       }
      if(
issuerid != INVALID_PLAYER_ID && bodypart == 6)
       {
           if(
weaponid == 22 || weaponid == 23 || weaponid == 24 || weaponid == 25 || weaponid == 26 || weaponid == 27 ||
            
weaponid == 28 || weaponid == 29 || weaponid == 30 || weaponid == 31 || weaponid == 32 || weaponid == 33 || weaponid == 34)
           {
               
sInfo[playerid][RArm] += 1;
        }
       }
      if(
issuerid != INVALID_PLAYER_ID && bodypart == 7)
       {
           if(
weaponid == 22 || weaponid == 23 || weaponid == 24 || weaponid == 25 || weaponid == 26 || weaponid == 27 ||
            
weaponid == 28 || weaponid == 29 || weaponid == 30 || weaponid == 31 || weaponid == 32 || weaponid == 33 || weaponid == 34)
           {
               
sInfo[playerid][LLeg] += 1;
        }
       }
      if(
issuerid != INVALID_PLAYER_ID && bodypart == 8)
       {
           if(
weaponid == 22 || weaponid == 23 || weaponid == 24 || weaponid == 25 || weaponid == 26 || weaponid == 27 ||
            
weaponid == 28 || weaponid == 29 || weaponid == 30 || weaponid == 31 || weaponid == 32 || weaponid == 33 || weaponid == 34)
           {
               
sInfo[playerid][RLeg] += 1;
        }
       }
      if(
issuerid != INVALID_PLAYER_ID && bodypart == 9)
       {
           if(
weaponid == 22 || weaponid == 23 || weaponid == 24 || weaponid == 25 || weaponid == 26 || weaponid == 27 ||
            
weaponid == 28 || weaponid == 29 || weaponid == 30 || weaponid == 31 || weaponid == 32 || weaponid == 33 || weaponid == 34)
           {
               
SetPlayerHealth(playeridHP-70);
               
sInfo[playerid][Head] += 1;
        }
       }
    if(
issuerid != INVALID_PLAYER_ID)
    {
        
PlayerPlaySound(issuerid178020.00.00.0);
        new 
Float:hp,string[128];
        
GetPlayerHealth(playerid,hp);
        if(
hp amount 26 && Fell[playerid] == -1)
        {
            
Fell[playerid] = 1;
            
SetPlayerHealth(playerid,25.0);
            
playaDeath[playerid] = SetTimerEx("PlayersDeath",180000,false,"i",playerid);
            
TogglePlayerControllable(playerid0);
            
ClearAnimations(playerid);
            
ApplyAnimation(playerid,"CRACK""crckdeth2"4.010000);
            if(
sInfo[playerid][Misc] > 0)
            {
                
format(stringsizeof(string), ""COL_RED"%d bruises on their body.\n"sInfo[playerid][Misc]);
                
strcat(holderstringsizeof(holder));
            }
            if(
sInfo[playerid][Head] > 0)
            {
                
format(stringsizeof(string), ""COL_RED"%d gun shot wound(s) in the head.\n"sInfo[playerid][Head]);
                
strcat(holderstringsizeof(holder));
            }
            if(
sInfo[playerid][Chest] > 0)
            {
                
format(stringsizeof(string), ""COL_RED"%d gun shot wound(s) in the chest.\n"sInfo[playerid][Chest]);
                
strcat(holderstringsizeof(holder));
            }
            if(
sInfo[playerid][Crotch] > 0)
            {
                
format(stringsizeof(string), ""COL_RED"%d gun shot wound(s) in the crotch.\n"sInfo[playerid][Crotch]);
                
strcat(holderstringsizeof(holder));
            }
            if(
sInfo[playerid][LArm] > 0)
            {
                
format(stringsizeof(string), ""COL_RED"%d gun shot wound(s) in the left arm.\n"sInfo[playerid][LArm]);
                
strcat(holderstringsizeof(holder));
            }
            if(
sInfo[playerid][RArm] > 0)
            {
                
format(stringsizeof(string), ""COL_RED"%d gun shot wound(s) in the right arm.\n"sInfo[playerid][RArm]);
                   
strcat(holderstringsizeof(holder));
            }
            if(
sInfo[playerid][LLeg] > 0)
            {
                
format(stringsizeof(string), ""COL_RED"%d gun shot wound(s) in the left leg.\n"sInfo[playerid][LLeg]);
                   
strcat(holderstringsizeof(holder));
            }
            if(
sInfo[playerid][RLeg] > 0)
            {
                
format(stringsizeof(string), ""COL_RED"%d gun shot wound(s) in the right leg.\n"sInfo[playerid][RLeg]);
                
strcat(holderstringsizeof(holder));
               }
            
deathlabel[playerid] = Create3DTextLabel(holder, -1Deadx[playerid], Deady[playerid], Deadz[playerid], 10.000);
            return 
0;
        }
    }
    
GetPlayerArmour(playerid,PlayerInfo[playerid][pArmour]);
    if(
actmarker[issuerid] >= 1)
    {
        
TextDrawShowForPlayer(issueridHitMarker);
        
timarker SetTimerEx("HTD"250true"%d"issuerid);
        
PlayerPlaySound(issuerid,1057,0,0,0);
    }
    return 
1;

Reply


Messages In This Thread
Error 025 - by ChromeAmazing - 21.02.2016, 19:59
Re: Error 025 - by Amunra - 22.02.2016, 05:10
Re: Error 025 - by Sew_Sumi - 22.02.2016, 06:08
Re: Error 025 - by ChromeAmazing - 22.02.2016, 23:06
Re: Error 025 - by Sew_Sumi - 23.02.2016, 01:42
Re: Error 025 - by SyS - 23.02.2016, 01:49
Re: Error 025 - by Sew_Sumi - 23.02.2016, 02:06
Re: Error 025 - by ChromeAmazing - 23.02.2016, 02:21
Re: Error 025 - by Sew_Sumi - 23.02.2016, 03:17
Re: Error 025 - by SyS - 23.02.2016, 05:33

Forum Jump:


Users browsing this thread: 1 Guest(s)