[Ajuda] Erros com dialog input
#1

Eu nunca criei um dialog input, entгo fui ver alguns tutoriais e tentei criar 1 de radio por numeros. sу que quando eu fui compilar deu alguns erros
Cуdigo :
pawn Код:
if(response)
        {//Radio Atlantida
            if(inputtext[0] == '1')
            {
                PlayAudioStreamForPlayer(playerid, "http://http://189.76.158.148:50008");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Atlantida.");
            }
            //Radio Country Sertanejo
            if(inputtext[0] == '2')
            {
                PlayAudioStreamForPlayer(playerid, "http://108.163.178.106:8075");
                SendClientMessage(playerid, -1, " Menssagem");
            }
            //Radio Dance
            if(inputtext[0] == '3')
            {
                PlayAudioStreamForPlayer(playerid, "http://173.193.201.100:8068");
                SendClientMessage(playerid, -1, " Menssagem");
            }
            //Radio Dance PoP
            if(inputtext[0] == '4')
            {
                PlayAudioStreamForPlayer(playerid, "http://80.237.157.97:8450");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Dance PoP.");
            }
            //Radio Funck Sincronizado
            if(inputtext[0] == '5')
            {
                PlayAudioStreamForPlayer(playerid, "http://83:170.116.212:7589");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Funck Sincronizado.");
            }
            //Radio Fusion
            if(inputtext[0] == '6')
            {
                PlayAudioStreamForPlayer(playerid, "http://65.60.34.34:8000");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Fusion.");
            }
            //Radio Games Brasil
            if(inputtext[0] == '7')
            {
                PlayAudioStreamForPlayer(playerid, "http://74.222.1.205:966/");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Games Brasil.");
            }
            //Radio Hunter
            if(inputtext[0] == '8')
            {
                PlayAudioStreamForPlayer(playerid, "http://live.hunterfm.com:8080/");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Hunter.");
            }
            //Radio Joven Pan
            if(inputtext[0] == '9')
            {
                PlayAudioStreamForPlayer(playerid, "http://46.166.135.85:9998");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Joven Pan.");
            }
            //Radio MegaSom
            if(inputtext[0] == '10')
            {
                PlayAudioStreamForPlayer(playerid, "http://174.142.196.188:8048");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio MegaSom.");
            }
            //Radio Mega Hits
            if(inputtext[0] == '11')
            {
                PlayAudioStreamForPlayer(playerid, "http://64.56.64.82:16910");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Mega Hits.");

            }
            //Radio MegaRock
            if(inputtext[0] == '12')
            {
                PlayAudioStreamForPlayer(playerid, "http://205.188.215.228:8012");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio MegaRock.");

            }
            //Radio Metalica
            if(inputtext[0] == '13')
            {
                PlayAudioStreamForPlayer(playerid, "http://199,16.186.40:8522/");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Metalica.");

            }
            //Radio Metropolitana
            if(inputtext[0] == '14')
            {
                PlayAudioStreamForPlayer(playerid, "http://metropolitanafm.uol.com.br/ao-vivo/");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Metropolitana.");

            }
            //Radio Mix
            if(inputtext[0] == '15')
            {
                PlayAudioStreamForPlayer(playerid, "http://184.82.14.162:9358/");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Mix.");

            }
            //Radio Pagode
            if(inputtext[0] == '16')
            {
                PlayAudioStreamForPlayer(playerid, "http://50.30.35.23:8172");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Pagode.");

            }
            //Radio Raggae
            if(inputtext[0] == '17')
            {
                PlayAudioStreamForPlayer(playerid, "http://76.90.204.146:8001");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Raggae.");

            }
            //Radio Sertaneja
            if(inputtext[0] == '18')
            {
                PlayAudioStreamForPlayer(playerid, "http://76.90.204.146:8001");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio Sertaneja.");

            }
            //Radio VLogs
            if(inputtext[0] == '19')
            {
                PlayAudioStreamForPlayer(playerid, "http://174.36.196.156:7390/");
                SendClientMessage(playerid, -1, "[Rбdio] Conectado a Rбdio VLogs.");

            }
            return 1;
        }
        return 1;
Erros:
Код:
C:\Users\opef\Documents\Meus arquivos recebidos\RadioSystem.pwn(76) : error 027: invalid character constant
C:\Users\opef\Documents\Meus arquivos recebidos\RadioSystem.pwn(76) : error 027: invalid character constant
C:\Users\opef\Documents\Meus arquivos recebidos\RadioSystem.pwn(76 -- 77) : error 029: invalid expression, assumed zero
C:\Users\opef\Documents\Meus arquivos recebidos\RadioSystem.pwn(76 -- 77) : fatal error 107: too many error messages on one line
Linhas:
pawn Код:
if(inputtext[0] == '10')
            {
Oque pode ser ??
Reply


Messages In This Thread
Erros com dialog input - by Supera - 10.10.2012, 18:50
Re: Erros com dialog input - by Life Advanced - 10.10.2012, 19:02
Re: Erros com dialog input - by Supera - 10.10.2012, 19:07
Re: Erros com dialog input - by Life Advanced - 10.10.2012, 19:08
Re: Erros com dialog input - by Supera - 10.10.2012, 19:11
Re: Erros com dialog input - by Life Advanced - 10.10.2012, 19:16
Re: Erros com dialog input - by @Riichard - 10.10.2012, 19:17
Re: Erros com dialog input - by Supera - 10.10.2012, 19:18
Re: Erros com dialog input - by Life Advanced - 10.10.2012, 19:24
Re: Erros com dialog input - by Supera - 10.10.2012, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)