30.06.2018, 12:42
And in *******_streamer.inc i got this code
PHP код:
#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