SA-MP Forums Archive
[Ajuda] Encontre o ERRO й ganha um +REP - 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] Encontre o ERRO й ganha um +REP (/showthread.php?tid=436765)



Encontre o ERRO й ganha um +REP - Brunooh - 12.05.2013

Код HTML:
else if(modelo == 596 || modelo == 427 || modelo == 523 || modelo == 574 || modelo == 601 || modelo == 528 || modelo == 490 || modelo == 497)
		{
			if(dini_Int(file, "Profissao") == Policial_R || dini_Int(file, "Profissao") == Guarda || dini_Int(file, "Profissao") == Policial_M || 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") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1)
			{
				SetPlayerArmour(playerid, 100.0);
				SendClientMessage(playerid, Amarelo, "Bem vindo guarda ou policial.");
			}
			else
			{
				incar[playerid] = 1;
				TogglePlayerControllable(playerid, 0);
				SendClientMessage(playerid, Vermelho, "Vocк nгo й um policial.");
			}
		}
PHP код:
C:\Users\Nilda\Documents\GM Brasil Vida Nova ™\gamemodes\BVN.pwn(25083) : error 075input line too long (after substitutions)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Jб fiz de tudo mais esse erro de merda nгo saii jб atй renoveii o else :@


Re: Encontre o ERRO й ganha um +REP - Miqueias Barros - 12.05.2013

pawn Код:
else if(modelo == 596 || modelo == 427 || modelo == 523 || modelo == 574 || modelo == 601 || modelo == 528 || modelo == 490 || modelo == 497) {
    if(dini_Int(file, "Profissao") == Policial_R || dini_Int(file, "Profissao") == Guarda || dini_Int(file, "Profissao") == Policial_M || 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") == FBI
    || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1) {
        SetPlayerArmour(playerid, 100.0);
        SendClientMessage(playerid, Amarelo, "Bem vindo guarda ou policial.");
    }
    else {
        incar[playerid] = 1;
        TogglePlayerControllable(playerid, 0);
        SendClientMessage(playerid, Vermelho, "Vocк nгo й um policial.");
    }
}



Re: Encontre o ERRO й ganha um +REP - Brunooh - 12.05.2013

Erro tbm :@


Re: Encontre o ERRO й ganha um +REP - Miqueias Barros - 12.05.2013

Qual й a linha: 25083?


Re: Encontre o ERRO й ganha um +REP - Don_Speed - 12.05.2013

Linha extremamente grande
pawn Код:
if(dini_Int(file, "Profissao") == Policial_R || dini_Int(file, "Profissao") == Guarda || dini_Int(file, "Profissao") == Policial_M || 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") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1)
Tente assim
pawn Код:
if(Cops(playerid)||dini_Int(file, "aAdmin") == 1)



stock Cops(playerid)
{

    // format da file
    if(dini_Int(file, "Profissao") == Policial_R || dini_Int(file, "Profissao") == Guarda || dini_Int(file, "Profissao") == Policial_M || 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") == FBI
    || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1)
    return true;
}