SA-MP Forums Archive
[AJUDA] Warning's chatos. - 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] Warning's chatos. (/showthread.php?tid=256281)



[AJUDA] Warning's chatos. - EviL_Knight - 20.05.2011

Код:
C:\Users\Evil\Documents\SAMP\Servezin\gamemodes\lol.pwn(20837) : warning 217: loose indentation
C:\Users\Evil\Documents\SAMP\Servezin\gamemodes\lol.pwn(20862) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          10632 bytes
Code size:          1972244 bytes
CMD :

pawn Код:
if(!strcmp(cmdtext,"/escudo",true))
{
    if(IsACop(playerid))
    {
        if(Equipamentos[playerid] == 1)
        {
            RemovePlayerAttachedObject(playerid,3);
            Equipamentos[playerid] = 0;
            return 1;
        }
        if(Equipamentos[playerid] == 0)
        {
            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
            SendClientMessage(playerid,COLOR_GREY,"Escudo Ativado !");
            Equipamentos[playerid] = 1;
            return 1;
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_GREY,"Vocк nгo й um Oficial.");
    }
    return 1;
}
Alguem pode me ajudar a corrigir estes Warning's?


Re: [AJUDA] Warning's chatos. - CyNiC - 20.05.2011

Tem certeza que sгo essas linhas?


Re: [AJUDA] Warning's chatos. - Josma_cmd - 20.05.2011

Manda as linhas.
E talvez algumas linhas antes possa causar isso tambйm.


Re: [AJUDA] Warning's chatos. - EviL_Knight - 20.05.2011

Certeza absoluta , ou meu Pawno ta cheirado '-'

Код:
(20837) : warning 217: loose indentation
(20862) : warning 217: loose indentation
Linhas

pawn Код:
if(strcmp(cmd, "/equipar", true) == 0) //20862
if(!strcmp(cmdtext,"/escudo",true)) //20837
@Edit :

Se eu tiro o /escudo some os Warning's '-'


Re: [AJUDA] Warning's chatos. - Josma_cmd - 20.05.2011

Se й no if provavelmente o warning tб sendo causado pelos cуdigos anteriores a ele que seguem uma faixa diferente de identaзгo


Re: [AJUDA] Warning's chatos. - TheGarfield - 20.05.2011

https://sampforum.blast.hk/showthread.php?tid=170773