Quote:
Originally Posted by Slice
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:
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
|
how do I transfer everything from my OnPlayerTakeDamage and OnPlayerGiveDamage to OnPlayerDamage lol
// edit: just noticed i need to adapt my whole script to this include, this is more complicated than i thought