SA-MP Forums Archive
[Ajuda] linha de entrada muito longo - 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] linha de entrada muito longo (/showthread.php?tid=502732)



linha de entrada muito longo - protork - 25.03.2014

Eai Feras, estou com o seguinte erro:
Erro 075: A linha de entrada por muito tempo (depois das substituiзхes)

apуs pesquisas descobri que tem que colocar uma string, dei uma pesquisada e nгo entendi como funciona
o que eu estou tentando fazer й colocar um comando para todas as determinadas profissхes sу que como sгo
varias nгo deu encaixe para um e realmente era necessбrio que a profissгo tivesse o comando.
se alguйm me der uma luz ficarei grato.



Re: linha de entrada muito longo - Adejair - 25.03.2014

Codigo?


Re: linha de entrada muito longo - protork - 25.03.2014

Код:
if(strcmp(cmd, "/giroflex", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInAnyVehicle(playerid))
            {

	if(dini_Int(file, "Profissao") == Guarda ||dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1)

                if(GetPVarInt(playerid, "SireneStatus") == 0)
                {
                    SetPVarInt(playerid, "SireneStatus", 1);
                    SetPVarInt(playerid, "undercover", CreateObject(18646,0,0,0,0,0,0));
                    SetPVarInt(playerid, "undercover1", CreateObject(18646,0,0,0,0,0,0));
                    AttachObjectToVehicle(GetPVarInt(playerid, "undercover"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
                    AttachObjectToVehicle(GetPVarInt(playerid, "undercover1"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
                    return 1;
                }
                else if(GetPVarInt(playerid, "SireneStatus") == 1)
                {
                    SetPVarInt(playerid, "SireneStatus", 0);
                    DestroyObject(GetPVarInt(playerid, "undercover"));
                    DestroyObject(GetPVarInt(playerid, "undercover1"));
                    return 1;
                }
            }

        }
        return 1;
    }



Re: linha de entrada muito longo - yNexus - 25.03.2014

Manda a linha

PHP код:
    if(strcmp(cmd"/giroflex"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
IsPlayerInAnyVehicle(playerid))
            {
                if(
dini_Int(file"Profissao") == Guarda ||dini_Int(file"Profissao") == Policial_C || dini_Int(file"Profissao") == Policial_F || dini_Int(file"Profissao") == Delegado || dini_Int(file"Profissao") == Bope || dini_Int(file"Profissao") == Swat || dini_Int(file"Profissao") == Narcoticos || dini_Int(file"Profissao") == Interpol || dini_Int(file"Profissao") == Policial_M || dini_Int(file"Profissao") == FBI || dini_Int(file"Profissao") == LSPD || dini_Int(file"aAdmin") == 1)
                {
                    if(
GetPVarInt(playerid"SireneStatus") == 0)
                    {
                        
SetPVarInt(playerid"SireneStatus"1);
                        
SetPVarInt(playerid"undercover"CreateObject(18646,0,0,0,0,0,0));
                           
SetPVarInt(playerid"undercover1"CreateObject(18646,0,0,0,0,0,0));
                        
AttachObjectToVehicle(GetPVarInt(playerid"undercover"), GetPlayerVehicleID(playerid), -0.5, -0.20.82.02.03.0);
                        
AttachObjectToVehicle(GetPVarInt(playerid"undercover1"), GetPlayerVehicleID(playerid), -0.5, -0.20.82.02.03.0);
                        return 
1;
                    }
                    else if(
GetPVarInt(playerid"SireneStatus") == 1)
                    {
                        
SetPVarInt(playerid"SireneStatus"0);
                        
DestroyObject(GetPVarInt(playerid"undercover"));
                        
DestroyObject(GetPVarInt(playerid"undercover1"));
                        return 
1;
                    }
                }
            }
        }
          return 
1;
    } 
estava faltando uma Chave ai .



Re: linha de entrada muito longo - protork - 25.03.2014

yNexus deu certo, Obrigadгo fera tava sofrendo aqui.