14.01.2011, 15:14
ok, so now I have this in my Include:
but I still get this error:
Код:
public OnPlayerConnect(playerid) { if(funcidx("FOnPlayerConnect") != -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); stock F_OnPlayerConnect(playerid) { //code... }
Quote:
\gamemodes\script.pwn(3013) : error 021: symbol already defined: "F_OnPlayerConnect" |