SA-MP Forums Archive
[Ajuda] Pawncc Travando. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Pawncc Travando. (/showthread.php?tid=616787)



Pawncc Travando. - Golld - 10.09.2016

Nгo sei o porque disso, mas desde ontem a noite nгo consigo compilar a gamemode mais porque ele estб travando e nгo sei o porque. Tentei baixar o notepad++ e o infernus pawn editor e mesmo assim o erro persiste, quais sгo as causas possiveis?




Re: Pawncc Travando. - n0minal - 10.09.2016

Vocк esqueceu de fechar alguma chave "}" e o compilador deu tantos erros que parou de funcionar.


Re: Pawncc Travando. - Dayvison_ - 10.09.2016

Aconselho ir adicionado a diretiva #error em uma linha e caso o compilador chegue nela, apague e adicione ela novamente umas 5 mil linhas abaixo, atй o momento que o compilador parar e nгo informar o erro dela. Quando isto ocorrer saberб em qual parte o erro se encontra.
Boa sorte


Re: Pawncc Travando. - Golld - 10.09.2016

Quote:
Originally Posted by Day_
Посмотреть сообщение
Aconselho ir adicionado a diretiva #error em uma linha e caso o compilador chegue nela, apague e adicione ela novamente umas 5 mil linhas abaixo, atй o momento que o compilador parar e nгo informar o erro dela. Quando isto ocorrer saberб em qual parte o erro se encontra.
Boa sorte
Cara, deu certo, sу nгo estou identificando o erro, poderiam me ajudar? A primeira linha й referente a linha 26500 da GM e a ultima й a 26600, na linha 26500 se eu colocar #error o compiler identifica e me avisa do erro mas na 26600 ele trava, logo o erro estб entre essas 100 linhas, correto?

Poderiam me ajudar a identificar?
PHP код:
        if (GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !IsEngineVehicle(vehicleid))
              return 
0;
        switch (
listitem)
        {
            case 
0:
                
SetVehicleRadio(vehicleid"http://87.230.53.17:8000/");
            case 
1:
                
SetVehicleRadio(vehicleid"http://87.230.82.41/");
        }
    }
    return 
1;
}
Dialog:Glee(playeridresponselistiteminputtext[])
{
    if (
response)
    {
        new 
vehicleid GetPlayerVehicleID(playerid);
        if (
GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !IsEngineVehicle(vehicleid))
              return 
0;
        switch (
listitem)
        {
            case 
0:
                
SetVehicleRadio(vehicleid"http://174.36.42.110:8360/");
        }
    }
    return 
1;
}
Dialog:MashUps(playeridresponselistiteminputtext[])
{
    if (
response)
    {
        new 
vehicleid GetPlayerVehicleID(playerid);
        if (
GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !IsEngineVehicle(vehicleid))
              return 
0;
        switch (
listitem)
        {
            case 
0:
                
SetVehicleRadio(vehicleid"http://184.107.17.34:8046/");
            case 
1:
                
SetVehicleRadio(vehicleid"http://67.212.166.210:8413/");
            case 
2:
                
SetVehicleRadio(vehicleid"http://206.217.213.236:8530/");
            case 
3:
                
SetVehicleRadio(vehicleid"http://188.138.124.98:39710/");
            case 
4:
                
SetVehicleRadio(vehicleid"http://87.118.64.205:8040/");
        }
    }
    return 
1;
}
Dialog:OldiesRadio(playeridresponselistiteminputtext[])
{
    if (
response)
    {
        new 
vehicleid GetPlayerVehicleID(playerid);
        if (
GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !IsEngineVehicle(vehicleid))
              return 
0;
        switch (
listitem)
        {
            case 
0:
                
Dialog_Show(playerid70sRadioDIALOG_STYLE_LIST"70's""181.fm - 70's\nAll Hit 70's\nSky.fm""Ligar""Cancelar");
            case 
1:
                
Dialog_Show(playerid80sRadioDIALOG_STYLE_LIST"80's""Golden Radio Italia 80's\n181.fm - Lite 80's\n181.fm - Awesome 80's\n80's, 80's, 80's! - Sky.fm""Ligar""Cancelar");
            case 
2:
                
Dialog_Show(playerid90sRadioDIALOG_STYLE_LIST"90's""GotRadio - 90's Alternative\nAddictedToRadio.com\n181.fm - Lite 90's\n181.fm - 90's Alternative\n181.fm - Star 90's""Ligar""Cancelar");
        }
    }
    return 
1;
}
Dialog:70sRadio(playeridresponselistiteminputtext[])
{
    if (
response)
    {
        new 
vehicleid GetPlayerVehicleID(playerid);
        if (
GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !IsEngineVehicle(vehicleid))
              return 
0;
        switch (
listitem)
        {
            case 
0:
                
SetVehicleRadio(vehicleid"http://108.61.73.118:8066/"); 



Re: Pawncc Travando. - Ender_ - 10.09.2016

que funзгo й essa ?'-' nunca achei ela na wiki..
pawn Код:
SetVehicleRadio(vehicleid, "http://108.61.73.118:8066/");

o certo seria assim n acha ? '-'
ai por no On player enter vehicle
pawn Код:
PlayAudioStreamForPlayer(playerid,"http://live.hunterfm.com/live");



Re: Pawncc Travando. - Golld - 10.09.2016

Essa funзгo й pra setar o rбdio pra quem estiver no veнculo, mas nгo sei porque o erro tб se apresentando nestas linhas, esse sistema funciona perfeitamente :/


Re: Pawncc Travando. - WeslleySSGames - 10.09.2016

As vezes isso nem a palavra chave й e sim o proprio computador um exemplo este tutorial que o coelho 3d postou no meu fуrum Unable to execute compiler... sacou ? espero que observe claramente este tutorial.


Re: Pawncc Travando. - Dayvison_ - 10.09.2016

Eu nгo vi o erro, vocк poderia tentar refinar mais, colocando o #error em 26590, 26580.

etc..


Re: Pawncc Travando. - n0minal - 10.09.2016

usa missing bracket finder


Re: Pawncc Travando. - Dayvison_ - 10.09.2016

Nгo й apenas falta de bracket que crash o compilador .-.