Help me:error 025: function heading differs from prototype
#1

C:\Documents and Settings\Admin\Desktop\1.3\1.2\hom nay\VnMgO GTA AE\gamemodes\vnit.pwn(14335 : error 025: function heading differs from prototype
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
   
// if(PlayerCuffed[damagedid] = 1 && weaponid == 23) return 1;
    
if(issuerid != INVALID_PLAYER_ID && weaponid == 25 && weaponid == 27 &&( bodypart ==7||bodypart==8) )
    {
    
ApplyAnimation(playerid"PED""BIKE_fall_off"4.1011101);
    return 
1;
    }
    if(
issuerid != INVALID_PLAYER_ID)
    {
        
ShotPlayer[issuerid][playerid] = gettime();
        
LastShot[playerid] = gettime();
        switch(
weaponid)
        {
      
//      case 23: DamagePlayer(playerid, 44);
         //   case 5: DamagePlayer(playerid, 13);
        //    case 24: DamagePlayer(playerid, 60);
        //    case 30: DamagePlayer(playerid, 20);
        //    case 31: DamagePlayer(playerid, 15);
          //  case 34: DamagePlayer(playerid, 60);
        
}
    }
    return 
1;

help me,please
Reply
#2

Update your a_samp include and almost the other a_ includes. Thats because you're using old version while bodypart was added on samp 0.3z.
Reply
#3

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
Update your a_samp include and almost the other a_ includes. Thats because you're using old version while bodypart was added on samp 0.3z.
thanks u.




I'm VietNames
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)