HELP[REP+]
#4

Quote:
Originally Posted by jlalt
Посмотреть сообщение
PHP код:
cmd(streamplayeridparams[])
{
    if(
Account[playerid][Dj] == 1)
    {
        new 
string[MAX_PLAYERS], url[MAX_PLAYERS];
        if(
sscanf(params"s[500]"url)) return SendClientMessage(playerid, -1"Usage: /stream [URL]");
        if(
Account[playerid][Streaming] == 0) return SendClientMessage(playerid, -1"{FF9900}Error: You must turn on your streaming mode!");
        for(new 
0MAX_PLAYERSi++)
        {
        if(
Account[i][Streaming] == 1) {
    
SendClientMessage(i, -1"=========================================");
        
StopAudioStreamForPlayer(i);
        
PlayAudioStreamForPlayer(iurl);
        
SendClientMessage(i, -1"=========================================");
        }
        return 
1;
    }
    else return 
0;
}
cmd(nostreamplayeridparams[])
{
    if(
Account[playerid][Streaming] == 1)
    {
        
Account[playerid][Streaming] = 0;
        
SendClientMessage(playerid, -1"{FF6600}» You have been turn off streaming mode.");
        
StopAudioStreamForPlayer(playerid);
    } else {
        
Account[playerid][Streaming] = 1;
        
SendClientMessage(playerid, -1"{FFFF00}» You have been turn on streaming mode.");
    }
    return 
1;

Код:
if(Account[playerid][Streaming] == 1) return SendClientMessage(playerid, -1, "{FF9900}Error: You must turn on your streaming mode!");
should be:
PHP код:
if(Account[playerid][Streaming] == 0) return SendClientMessage(playerid, -1"{FF9900}Error: You must turn on your streaming mode!"); 
and you miss { after
PHP код:
if(Account[i][Streaming] == 1
already Put But When i use /stream http://myurl Then It Be Nothing
Reply


Messages In This Thread
HELP[REP+] - by dh240473 - 06.10.2015, 07:44
Re: HELP[REP+] - by jihadmeneer - 06.10.2015, 07:46
Re: HELP[REP+] - by jlalt - 06.10.2015, 07:52
Re: HELP[REP+] - by dh240473 - 06.10.2015, 08:01
Re: HELP[REP+] - by dh240473 - 06.10.2015, 08:15
Re: HELP[REP+] - by jihadmeneer - 06.10.2015, 08:31
Re: HELP[REP+] - by dh240473 - 06.10.2015, 08:33
Re: HELP[REP+] - by Galletziz - 06.10.2015, 08:44
Re: HELP[REP+] - by Affan - 06.10.2015, 09:01
Re: HELP[REP+] - by dh240473 - 06.10.2015, 10:16

Forum Jump:


Users browsing this thread: 3 Guest(s)