[Ajuda] Erro com comandos radio ao compilar
#5

Quote:
Originally Posted by SpikeCompiler
Посмотреть сообщение
Erros de chaves, vocк estava esquecendo de fechar.

PHP код:
    if (strcmp("/rock"cmdtexttrue10) == 0)
    {
    if(
RadioPlayer[playerid] == 0) { //chave aberta
    
RadioPlayer[playerid] =1;
    
PlayAudioStreamForPlayer(playerid"http://23.29.71.154:8140/listen.pls?sid=1&t=.m3u");
    
SendClientMessage(playeridgreen"Radio: xxxRockFM");
    
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
    return 
1;
    } 
// chave fechada, porйm nгo fechou a "if(RadioPlayer[playerid] == 0)" 
PHP код:
    if (strcmp("/hiphop"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://209.95.50.189:8124/listen.pls?sid=1&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: Urban Hitz");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/reggaeton"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://192.184.9.158:8836/listen.pls&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: ReggaetonColombia");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/eletronica"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://pulseedm.cdnstream1.com:8124/1373_128.m3u&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: PulseEDM Dance Music Radio");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/metal"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://192.99.62.212:9408/listen.pls?sid=1&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: MetalRockFM");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/hiphop2"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://149.56.175.167:5461/listen.pls?sid=1&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: Hip Hop Request");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/country"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://188.165.232.7:8477/listen.pls?sid=1&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: Country Hits Radio");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/blues"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://37.59.14.77:8352/listen.pls?sid=1&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: Blues Radio");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/rock"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://23.29.71.154:8140/listen.pls?sid=1&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: xxxRockFM");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/hiphop3"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://149.56.157.81:8677/listen.pls?sid=1&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: Big Shot Radio");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/hiphop4"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://88.198.10.229:8150/listen.pls?sid=1&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: Bounce Radio");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/wutang"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://162.252.85.85:8872/listen.pls?sid=1&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: Wu World Radio");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/hiphop5"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://144.217.180.30:8218/listen.pls?sid=1&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: OldSchoolRapFM");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if (
strcmp("/hiphop6"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =1;
            
PlayAudioStreamForPlayer(playerid"http://74.82.59.197:8208/listen.pls?sid=1&t=.m3u");
            
SendClientMessage(playeridgreen"Radio: 223 Media Radio NY");
            
SendClientMessage(playerid, -1"* Si deseas apagar la radio usa (/RadioOff)!");
            return 
1;
        }
    }
    if(
strcmp("/radiooff"cmdtexttrue10) == 0)
    {
        if(
RadioPlayer[playerid] == 0)
        {
            
RadioPlayer[playerid] =0;
            
StopAudioStreamForPlayer(playerid);
            
SendClientMessage(playeridred"* Radio Off!");
            return 
1;
        }
    }
    return 
1;

Muito obrigado mano, era isso mesmo.. Realmente nгo tinha me dado conta disso kkkkkkkk Valeu mesmo brother, ja resolvi aqui!
Reply


Messages In This Thread
Erro com comandos radio ao compilar - by dittmannlucas - 13.04.2018, 05:07
Re: Erro com comandos radio ao compilar - by PowerMwK - 13.04.2018, 10:20
Re: Erro com comandos radio ao compilar - by GunnerCoder - 13.04.2018, 16:37
Re: Erro com comandos radio ao compilar - by SpikeCompiler - 13.04.2018, 16:41
Re: Erro com comandos radio ao compilar - by dittmannlucas - 13.04.2018, 22:27
Re: Erro com comandos radio ao compilar - by dittmannlucas - 13.04.2018, 22:29

Forum Jump:


Users browsing this thread: 1 Guest(s)