18.05.2015, 08:36
Код:
public OnPlayerConnect(playerid) { #if defined MyLib_OnPlayerConnect MyLib_OnPlayerConnect(playerid); #endif return 1; } #if defined _ALS_OnPlayerConnect #undef OnPlayerConnect #else #define _ALS_OnPlayerConnect #endif #define OnPlayerConnect MyLib_OnPlayerConnect #if defined MyLib_OnPlayerConnect forward MyLib_OnPlayerConnect(playerid); #endif
Код:
public OnPlayerConnect(playerid) { #if defined MyLib_OnPlayerConnect MyLib_OnPlayerConnect(playerid); #else return 1; #endif } #if defined _ALS_OnPlayerConnect #undef OnPlayerConnect #else #define _ALS_OnPlayerConnect #endif #define OnPlayerConnect MyLib_OnPlayerConnect #if defined MyLib_OnPlayerConnect forward MyLib_OnPlayerConnect(playerid); #endif