FCNPC.inc error - 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: FCNPC.inc error (
/showthread.php?tid=520658)
FCNPC.inc error -
iThePunisher - 19.06.2014
im using FCNPC and when i #include <FCNPC> at my gamemode im taking 1 error
pawn Код:
\include\FCNPC.inc(128) : error 025: function heading differs from prototype
i opened the .inc and i think this is the line where the error comes from ....
any idea how to fix this?
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
// Process damage
FCNPC_ProcessDamage(playerid, damagedid, amount, weaponid, bodypart);
#if defined FCNPC_OnPlayerGiveDamage
return FCNPC_OnPlayerGiveDamage(playerid, damagedid, amount, weaponid, bodypart);
#else
return 1;
#endif
}
Re: FCNPC.inc error -
Hashski - 19.06.2014
search for OnPlayerGiveDamage in your script and make sure it matches this. 'bodypart' was introduced in 0.3z so your script might be missing that.
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)