08.09.2017, 04:10
(
Последний раз редактировалось Juniiro3; 08.09.2017 в 14:14.
)
I just downloaded and included Nex Anticheater. But it triggered two errors that i couldn't figure:
This error is usually caused by a missing parameter, but this is the code:
The other snippet is very similar.
Does anyone has any ideia of what is going on?
Код:
C:\PawnCC\include\nex-ac.inc(3061) : warning 202: number of arguments does not match definition C:\PawnCC\include\nex-ac.inc(3075) : error 025: function heading differs from prototype C:\PawnCC\include\nex-ac.inc(5678) : warning 202: number of arguments does not match definition C:\PawnCC\include\nex-ac.inc(5692) : error 025: function heading differs from prototype
PHP код:
#if defined _inc_y_hooks || defined _INC_y_hooks
hook OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
#else
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
#endif
{
if(ACInfo[playerid][acKicked]) return 1;
ACInfo[playerid][acDeathRes] = true;
#if !defined _inc_y_hooks && !defined _INC_y_hooks && defined ac_OnPlayerTakeDamage
L3061 --> return ac_OnPlayerTakeDamage(playerid, issuerid, amount, weaponid, bodypart);
#else
return 0;
#endif
}
//The Hook itself
#if !defined _inc_y_hooks && !defined _INC_y_hooks
#if defined _ALS_OnPlayerTakeDamage
#undef OnPlayerTakeDamage
#else
#define _ALS_OnPlayerTakeDamage
#endif
#define OnPlayerTakeDamage ac_OnPlayerTakeDamage
#if defined ac_OnPlayerTakeDamage
L3075 --> forward ac_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
#endif
#endif
Does anyone has any ideia of what is going on?