public function lacks forward declaration (symbol "stream_OnPlayerDisconnect")
public OnPlayerDisconnect(playerid, reason)
{
if (!IsPlayerNPC(playerid))
{
Audio_RemovePlayer(playerid);
}
if (Audio_g_OPDC)
{
return CallLocalFunction("Audio_OnPlayerDisconnect", "dd", playerid, reason);
}
return 1;
}
#if defined _ALS_OnPlayerDisconnect
#undef OnPlayerDisconnect
#else
#define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect Audio_OnPlayerDisconnect
#if defined USE_TIMER
forward intern_OnStopUrl(playerid);
public intern_OnStopUrl(playerid)
{
#if defined OnFinish*******Url
static unpack[128];
strunpack(unpack, *******_title[playerid]);
OnFinish*******Url(playerid, unpack, *******_len[playerid]);
#endif
#if defined *******_USE_TEXTDRAW
PlayerTextDrawHide(playerid, *******_textdraw[playerid]);
#endif
*******_title[playerid]{0} = '\0';
*******_len[playerid] = 0;
*******_timer[playerid] = -1;
}
public OnPlayerDisconnect(playerid, reason)
{
if(*******_timer[playerid] != -1)
KillTimer(*******_timer[playerid]);
*******_timer[playerid] = -1;
#if defined stream_OnPlayerDisconnect
return stream_OnPlayerDisconnect(playerid, reason);
#else
return 1;
#endif
}
#if defined _ALS_OnPlayerDisconnect
#undef OnPlayerDisconnect
#else
#define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect stream_OnPlayerDisconnect
#if defined stream_OnPlayerDisconnect
forward stream_OnPlayerDisconnect(playerid, reason);
#endif
#endif
forward stream_OnPlayerDisconnect(playerid, reason);
This should be on top
Код:
forward stream_OnPlayerDisconnect(playerid, reason); |
This should be on top
Код:
forward stream_OnPlayerDisconnect(playerid, reason); |
#if defined _ALS_OnPlayerDisconnect #undef OnPlayerDisconnect #else #define _ALS_OnPlayerDisconnect #endif #define OnPlayerDisconnect stream_OnPlayerDisconnect #if defined stream_OnPlayerDisconnect forward stream_OnPlayerDisconnect(playerid, reason); #endif #endif
Cause you got it in your code. You need put it on top of your code.
Move it on top. Код:
#if defined _ALS_OnPlayerDisconnect #undef OnPlayerDisconnect #else #define _ALS_OnPlayerDisconnect #endif #define OnPlayerDisconnect stream_OnPlayerDisconnect #if defined stream_OnPlayerDisconnect forward stream_OnPlayerDisconnect(playerid, reason); #endif #endif |
Cause you got it in your code. You need put it on top of your code.
Move it on top. Код:
#if defined _ALS_OnPlayerDisconnect #undef OnPlayerDisconnect #else #define _ALS_OnPlayerDisconnect #endif #define OnPlayerDisconnect stream_OnPlayerDisconnect #if defined stream_OnPlayerDisconnect forward stream_OnPlayerDisconnect(playerid, reason); #endif #endif |
nex-ac.inc(2904) : error 021: symbol already defined: "Audio_OnPlayerDisconnect"
Look on line 2904 and remove it cause you already have it somewhere.
|
#if defined _inc_y_hooks || defined _INC_y_hooks
hook OnPlayerDisconnect(playerid, reason)
#else
public OnPlayerDisconnect(playerid, reason)
#endif