C:\Documents and Settings\Administrator\My Documents\riad\RuNix\pawno\include\streamer.inc(21 3) : error 021: symbol already defined: "OnFilterScriptInit"
C:\Documents and Settings\Administrator\My Documents\riad\RuNix\pawno\include\streamer.inc(27 3) : error 021: symbol already defined: "OnPlayerConnect" What is the problem? |
public OnFilterScriptInit()
public OnPlayerConnect(playerid)
public OnPlayerConnect(playerid) { if (!IsPlayerNPC(playerid)) { Streamer_AddPlayer(playerid); } if (Streamer_g_OPC) { return CallLocalFunction("Streamer_OnPlayerConnect", "d", playerid); } return 1; } #if defined _ALS_OnPlayerConnect #undef OnPlayerConnect #else #define _ALS_OnPlayerConnect #endif #define OnPlayerConnect Streamer_OnPlayerConnect forward Streamer_OnPlayerConnect(playerid); public OnPlayerDisconnect(playerid, reason) { if (!IsPlayerNPC(playerid)) { Streamer_RemovePlayer(playerid); } if (Streamer_g_OPDC) { return CallLocalFunction("Streamer_OnPlayerDisconnect", "dd", playerid, reason); } return 1; }
public OnFilterScriptInit() { if (!Streamer_g_RI) { Streamer_g_OPC = funcidx("Streamer_OnPlayerConnect") != -1; Streamer_g_OPDC = funcidx("Streamer_OnPlayerDisconnect") != -1; Streamer_g_OPPP = funcidx("Streamer_OnPlayerPickUpPickup") != -1; Streamer_g_OPEC = funcidx("Streamer_OnPlayerEnterCP") != -1; Streamer_g_OPLC = funcidx("Streamer_OnPlayerLeaveCP") != -1; Streamer_g_OPERC = funcidx("Streamer_OnPlayerEnterRaceCP") != -1; Streamer_g_OPLRC = funcidx("Streamer_OnPlayerLeaveRaceCP") != -1; Streamer_g_RI = true; Streamer_RegisterInterface(); } if (funcidx("Streamer_OnFilterScriptInit") != -1) { return CallLocalFunction("Streamer_OnFilterScriptInit", ""); } return 1; } #if defined _ALS_OnFilterScriptInit #undef OnFilterScriptInit #else #define _ALS_OnFilterScriptInit #endif #define OnFilterScriptInit Streamer_OnFilterScriptInit forward Streamer_OnFilterScriptInit();