[Ajuda] warning loose identation - 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 loose identation (
/showthread.php?tid=643849)
warning loose identation -
TheHave - 28.10.2017
q warning й esse?
Re: warning loose identation -
Benner - 28.10.2017
Loose indentation = Mal Indentaзгo
Й um aviso que diz que o seu cуdigo esta mal indentado vou dar um exemplo.
PHP код:
CMD:teste(playerid)
{
SendClientMessage(playerid, -1, " Vc virou um teste");
Teste[playerid]=1;
return 1;
}
Reparou que a variavel Teste esta mal colocada ? Entгo loose indentation й isso.
Quando der esse tipo de aviso copie o cуdigo inteiro e cole aqui:
Tabulador Online << Clique ali
Re: warning loose identation -
TheHave - 28.10.2017
valeu mano
meu codigo tava assim:
PHP код:
CMD:life(playerid, params[])
{
SetPlayerHealth(playerid, 100);
return 1;
}
ai deu essa mensagem
Re: warning loose identation -
pWesley - 28.10.2017
Quote:
Originally Posted by TheHave
valeu mano
meu codigo tava assim:
PHP код:
CMD:life(playerid, params[])
{
SetPlayerHealth(playerid, 100);
return 1;
}
ai deu essa mensagem
|
Й sу vocк dar um TAB antes do return 1; pra poder resolver essa falha.
Re: warning loose identation -
TheHave - 28.10.2017
saquei mano
ai 'identa' o codigo todo ou so a linha?
Re: warning loose identation -
Rato22 - 28.10.2017
Para identar o cуdigo todo,use CTRL + A depois SHIFT+TAB.
Re: warning loose identation -
cristiannh2 - 29.10.2017
Cola o seu cуdigo aqui,
http://tabulador.medianewsonline.com/ que ele resolve.
Re: warning loose identation -
C4rtm4n - 29.10.2017
Quote:
Originally Posted by Benner
Loose indentation = Mal Indentaзгo
Й um aviso que diz que o seu cуdigo esta mal indentado vou dar um exemplo.
PHP код:
CMD:teste(playerid)
{
SendClientMessage(playerid, -1, " Vc virou um teste");
Teste[playerid]=1;
return 1;
}
Reparou que a variavel Teste esta mal colocada ? Entгo loose indentation й isso.
Quando der esse tipo de aviso copie o cуdigo inteiro e cole aqui: Tabulador Online << Clique ali
|
@All
Vocкs nгo sabem ler ? O benner jб respondeu a duvida do tуpico pra que continuar a comentar ?