14.01.2011, 16:19
Quote:
You don't use F_OnPlayerConnect - that basically renames the NEXT OnPlayerConnect which MAY be the one in the gamemode or one in another library.
|
I have this now:
Код:
public OnPlayerConnect(playerid) //yes, this is also in the include! { //code } public OnPlayerConnect(playerid) { if(funcidx("F_OnPlayerConnect") != -1) { return CallLocalFunction("F_OnPlayerConnect", "i", playerid); } return 1; } #if defined _ALS_OnPlayerConnect #undef OnPlayerConnect #else #define _ALS_OnPlayerConnect #endif #define OnPlayerConnect F_OnPlayerConnect forward F_OnPlayerConnect(playerid);
but now I get error 021: symbol already defined: "OnPlayerConnect" (error occurs in the include)