[Ajuda] Erro com comandos radio ao compilar
#1

Qual o problema se eu tiro essa parte da gm eu consigo compilar normal, agora se eu tento compilar com essa parte da uns erro que na verdade nem informa o erro que й.. dб um monte de erro 17 en outras linhas nada a ver com a parte que eu quero compilar na gm.. aн vгo os codes e os erros.

*OBS OFF: Estб em espanhol porque estou editando uma gm pra um servidor latino. xD

Код:
    if (strcmp("/hiphop", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://209.95.50.189:8124/listen.pls?sid=1&t=.m3u");
    SendClientMessage(playerid, green, "Radio: Urban Hitz");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/reggaeton", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://192.184.9.158:8836/listen.pls&t=.m3u");
    SendClientMessage(playerid, green, "Radio: ReggaetonColombia");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/eletronica", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://pulseedm.cdnstream1.com:8124/1373_128.m3u&t=.m3u");
    SendClientMessage(playerid, green, "Radio: PulseEDM Dance Music Radio");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/metal", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://192.99.62.212:9408/listen.pls?sid=1&t=.m3u");
    SendClientMessage(playerid, green, "Radio: MetalRockFM");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/hiphop2", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://149.56.175.167:5461/listen.pls?sid=1&t=.m3u");
    SendClientMessage(playerid, green, "Radio: Hip Hop Request");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/country", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://188.165.232.7:8477/listen.pls?sid=1&t=.m3u");
    SendClientMessage(playerid, green, "Radio: Country Hits Radio");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/blues", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://37.59.14.77:8352/listen.pls?sid=1&t=.m3u");
    SendClientMessage(playerid, green, "Radio: Blues Radio");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/rock", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://23.29.71.154:8140/listen.pls?sid=1&t=.m3u");
    SendClientMessage(playerid, green, "Radio: xxxRockFM");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/hiphop3", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://149.56.157.81:8677/listen.pls?sid=1&t=.m3u");
    SendClientMessage(playerid, green, "Radio: Big Shot Radio");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/hiphop4", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://88.198.10.229:8150/listen.pls?sid=1&t=.m3u");
    SendClientMessage(playerid, green, "Radio: Bounce Radio");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/wutang", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://162.252.85.85:8872/listen.pls?sid=1&t=.m3u");
    SendClientMessage(playerid, green, "Radio: Wu World Radio");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/hiphop5", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://144.217.180.30:8218/listen.pls?sid=1&t=.m3u");
    SendClientMessage(playerid, green, "Radio: OldSchoolRapFM");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if (strcmp("/hiphop6", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0) {
    RadioPlayer[playerid] =1;
    PlayAudioStreamForPlayer(playerid, "http://74.82.59.197:8208/listen.pls?sid=1&t=.m3u");
    SendClientMessage(playerid, green, "Radio: 223 Media Radio NY");
    SendClientMessage(playerid, -1, "* Si deseas apagar la radio usa (/RadioOff)!");
    return 1;
    }

    if(strcmp("/radiooff", cmdtext, true, 10) == 0)
    {
    if(RadioPlayer[playerid] == 0)  {
    RadioPlayer[playerid] =0;
    StopAudioStreamForPlayer(playerid);
    SendClientMessage(playerid, red, "* Radio Off!");
    return 1;
}
ERROS:
Код:
K:\L U C A S\gpara11.pwn(771) : error 017: undefined symbol "Actualizar"
K:\L U C A S\gpara11.pwn(777) : error 017: undefined symbol "PlayerName2"
K:\L U C A S\gpara11.pwn(807) : error 017: undefined symbol "SaveToFile"
K:\L U C A S\gpara11.pwn(810) : error 017: undefined symbol "IpToCountry_db"
K:\L U C A S\gpara11.pwn(833) : error 017: undefined symbol "NickSpam"
K:\L U C A S\gpara11.pwn(835) : error 017: undefined symbol "CambiarNickSpamer"
K:\L U C A S\gpara11.pwn(872) : error 017: undefined symbol "MapIcons"
K:\L U C A S\gpara11.pwn(872) : error 017: undefined symbol "RemoveObjets"
K:\L U C A S\gpara11.pwn(874) : error 017: undefined symbol "PlayerName2"
K:\L U C A S\gpara11.pwn(878) : error 017: undefined symbol "SaveToFile"
K:\L U C A S\gpara11.pwn(900) : error 017: undefined symbol "SaveToFile"
K:\L U C A S\gpara11.pwn(920) : error 017: undefined symbol "PlayerName2"
K:\L U C A S\gpara11.pwn(939) : error 017: undefined symbol "encodepass"
K:\L U C A S\gpara11.pwn(967) : error 017: undefined symbol "encodepass"
K:\L U C A S\gpara11.pwn(1060) : error 017: undefined symbol "DelPrint"
K:\L U C A S\gpara11.pwn(1061) : error 017: undefined symbol "DelPrint"
K:\L U C A S\gpara11.pwn(1070) : error 017: undefined symbol "BorrarAuto"
K:\L U C A S\gpara11.pwn(1071) : error 017: undefined symbol "ResetPlayerVarDisconnect"
K:\L U C A S\gpara11.pwn(1073) : error 017: undefined symbol "CarDeleter"
K:\L U C A S\gpara11.pwn(1113) : error 017: undefined symbol "Guardar"
K:\L U C A S\gpara11.pwn(1117) : error 017: undefined symbol "PlayerName2"
K:\L U C A S\gpara11.pwn(1119) : error 017: undefined symbol "PlayerName2"
K:\L U C A S\gpara11.pwn(1141) : error 017: undefined symbol "CarDeleter"
K:\L U C A S\gpara11.pwn(1150) : error 017: undefined symbol "AdvanceSpectate"
K:\L U C A S\gpara11.pwn(1163) : error 017: undefined symbol "Actualizar"
K:\L U C A S\gpara11.pwn(1164) : error 017: undefined symbol "Actualizar"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

Cria as variбveis.
https://sampforum.blast.hk/showthread.php?tid=235924
Reply
#3

Crie as variбveis, por exemplo:

K:\L U C A S\gpara11.pwn(771) : error 017: undefined symbol "Actualizar"

Em cima do seu sistema de rбdio coloque isso new Actualizar;

Faзa isso em todos esse nomes que aparecem nos erros.
Reply
#4

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;

Reply
#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
#6

Muito obrigado a todos, mas jб consegui resolver, sу tinha esquecido de fechar as chaves!!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)