C:\Users\cpt\Desktop\Script Package\pawno\include\FCNPC.inc(282) : warning 202: number of arguments does not match definition
C:\Users\cpt\Desktop\Script Package\pawno\include\FCNPC.inc(295) : error 025: function heading differs from prototype
return FCNPC_OnPlayerTakeDamage(playerid, issuerid, amount, weaponid, bodypart);
forward FCNPC_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
FCNPC_OnTakeDamage(npcid, damagerid, weaponid, bodypart, Float:health_loss)
Code:
FCNPC_OnTakeDamage(npcid, damagerid, weaponid, bodypart, Float:health_loss) |
warning 235: public function lacks forward declaration (symbol "FCNPC_OnPlayerTakeDamage")
error 004: function "FCNPC_OnTakeDamage" is not implemented
forward FCNPC_OnTakeDamage(npcid, damagerid, weaponid, bodypart, Float:health_loss); public FCNPC_OnTakeDamage(npcid, damagerid, weaponid, bodypart, Float:health_loss) { // code return 1; }
error 025: function heading differs from prototype
error 017: undefined symbol "damagerid"
error 025: function heading differs from prototype
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
}
forward FCNPC_OnPlayerTakeDamage(npcid, damagerid, weaponid, bodypart, Float:health_loss);
return FCNPC_OnPlayerTakeDamage(npcid, damagerid, weaponid, bodypart, Float:health_loss);
Code:
return FCNPC_OnPlayerTakeDamage(npcid, damagerid, weaponid, bodypart, Float:health_loss); |