SA-MP Forums Archive
Help me:error 025: function heading differs from prototype - 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: Help me:error 025: function heading differs from prototype (/showthread.php?tid=582155)



Help me:error 025: function heading differs from prototype - thaihan - 18.07.2015

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


Re: Help me:error 025: function heading differs from prototype - SilentSoul - 18.07.2015

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.


Re: Help me:error 025: function heading differs from prototype - thaihan - 18.07.2015

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