SA-MP Forums Archive
[Ajuda] Warnings 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] Warnings chatos ... (/showthread.php?tid=630064)



Warnings chatos ... - GuilhermeNunes - 08.03.2017

bom tinha 10 warnings ai eu consegui tirar alguns porem esses eu nгo consegui tirar alguem me ajuda ?

Warnings(avisos)

PHP код:
C:\Projeto (CLS)\gamemodes\CLS.pwn(200) : warning 217loose indentation
C
:\Projeto (CLS)\gamemodes\CLS.pwn(338) : warning 217loose indentation
C
:\Projeto (CLS)\gamemodes\CLS.pwn(424) : warning 217loose indentation
C
:\Projeto (CLS)\gamemodes\CLS.pwn(494) : warning 203symbol is never used"DOF2_Exit"
C:\Projeto (CLS)\gamemodes\CLS.pwn(494) : warning 203symbol is never used"PlayerInfo"
C:\Projeto (CLS)\gamemodes\CLS.pwn(494) : warning 203symbol is never used"carrao"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
6 Warnings

Cуdigo que faz parte da linha 338

PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
{
    if(!
success)
        {
                new 
string[128];
    
format(stringsizeof(string), "{FF0000}| ERRO |{FF0000} » O Comando {00FFF3} %s {FF0000} Nгo Existe !.",cmdtext);
    
SendClientMessage(playerid,-1,string);
    }
    
    return 
1;
 } 
linha 424

PHP код:
    return 1;

na linha 491 ta falando que tem erro sendo que n existe essa linha ...




Re: Warnings chatos ... - Kamper - 08.03.2017

Identa o cуdigo.


Re: Warnings chatos ... - GuilhermeNunes - 08.03.2017

Quote:
Originally Posted by Kamper
Посмотреть сообщение
Identa o cуdigo.
o que ?


Re: Warnings chatos ... - IlanZ - 08.03.2017

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


Re: Warnings chatos ... - GuilhermeNunes - 08.03.2017

Quote:
Originally Posted by IlanZ
Посмотреть сообщение
Vlw se ta sempre me ajudando mano vlw mesmo mano se й muito foda


Re: Warnings chatos ... - GuilhermeNunes - 08.03.2017

Quote:
Originally Posted by IlanZ
Посмотреть сообщение
Mano tirei todos os warnings de mal intentaзгo do meu FS que to fazendo e da gm mais esses nгo sai'-' serio da uma olhada .

PHP код:
C:\Projeto (CLS)\gamemodes\CLS.pwn(416) : warning 217loose indentation
C
:\Projeto (CLS)\gamemodes\CLS.pwn(483) : warning 203symbol is never used"DOF2_Exit"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
2 Warnings

Obs: na linha 483 ta dando erro porem eu n tenho essa linha na minha GM somente ate a 416 e no 483 n consigui achar o erro .-.

http://imgur.com/a/DO5T8
linha 421
PHP код:
            }
        }
        else{
         
SavePlayerplayerid );
         
Kickplayerid );
        }
    }
    }
    
    return 
1;
    

Nгo copiei o codigo todo se n ia ficar muito grande ...


Re: Warnings chatos ... - MkeY - 08.03.2017

Isso acontece porque o aviso й dirigido a alguma include e nгo ao gamemode em si.
Nesse caso provavelmente й a prуpria include DOF2... recomendo nem mexer se for o caso.

Na linha 416 й sу indentaзгo (ou como dizem, errado: identaзгo) como os outros que vocк jб tinha corrigido...


Re: Warnings chatos ... - GuilhermeNunes - 08.03.2017

Quote:
Originally Posted by MkeY
Посмотреть сообщение
Isso acontece porque o aviso й dirigido a alguma include e nгo ao gamemode em si.
Nesse caso provavelmente й a prуpria include DOF2... recomendo nem mexer se for o caso.

Na linha 416 й sу indentaзгo (ou como dizem, errado: identaзгo) como os outros que vocк jб tinha corrigido...
nгo ajudou em nada man eu n consigo achar o erro da linha 416..


Re: Warnings chatos ... - GuilhermeNunes - 08.03.2017

Olha arrumei o da DOF2 mas n consigo arrumar o 416 ;-;
PHP код:
C:\Projeto (CLS)\gamemodes\CLS.pwn(416) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Warning




Re: Warnings chatos ... - Tuznn - 09.03.2017

Vocк tem que indentar esse seu GM mano. Indenta ele todo que sai o warning