19.08.2016, 14:10
Well, the reason you get this error is because I prevent people from accidentally using OnPlayerGiveDamage/OnPlayerTakeDamage.
Those should never be used.
Either you can remove the from YSI (ugly solution), or add this between weapon-config and the first YSI include:
Those should never be used.
Either you can remove the from YSI (ugly solution), or add this between weapon-config and the first YSI include:
pawn Код:
#if defined _ALS_OnPlayerGiveDamage
#undef OnPlayerGiveDamage
#else
#define _ALS_OnPlayerGiveDamage
#endif
#define OnPlayerGiveDamage NULL_OnPlayerGiveDamage
#if defined NULL_OnPlayerGiveDamage
forward NULL_OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
#endif
#if defined _ALS_OnPlayerTakeDamage
#undef OnPlayerTakeDamage
#else
#define _ALS_OnPlayerTakeDamage
#endif
#define OnPlayerTakeDamage NULL_OnPlayerTakeDamage
#if defined NULL_OnPlayerTakeDamage
forward NULL_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
#endif