FCNPC.inc error
#1

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
}
Reply
#2

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)