20.07.2017, 10:36
you just did a mistake you forget to type "Player"
it's like this
"FCNPC_OnPlayerTakeDamage"
Line 279 :
and here is LINE 295 :
it's like this
"FCNPC_OnPlayerTakeDamage"
PHP Code:
error 025: function heading differs from prototype
error 017: undefined symbol "damagerid"
error 025: function heading differs from prototype
PHP Code:
public OnPlayerTakeDamage(npcid,playerid, issuerid, Float:amount, weaponid, bodypart) //This is the line 279
{
#if defined FCNPC_OnPlayerTakeDamage
return FCNPC_OnPlayerTakeDamage(npcid, damagerid, weaponid, bodypart, Float:health_loss); //This is 282
#else
return 1;
#endif
}
PHP Code:
forward FCNPC_OnPlayerTakeDamage(npcid, damagerid, weaponid, bodypart, Float:health_loss);