[Ajuda] Warning 217
#1

Estou com este warning, nгo consiguo resolver, jб apertei TAB no inicio da linha mas nгo adiantou.

Warning:
PHP Code:
C:\Users\Erickson\Desktop\brvgm.pwn(10321) : warning 217loose indentation 
Linha:
PHP Code:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { 

Ajude-me
Reply
#2

Quote:
Originally Posted by ZaturN
View Post
Estou com este warning, nгo consiguo resolver, jб apertei TAB no inicio da linha mas nгo adiantou.

Warning:
PHP Code:
C:\Users\Erickson\Desktop\brvgm.pwn(10321) : warning 217loose indentation 
Linha:
PHP Code:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { 

Ajude-me
Indentaзгo, manda o codigo a cima e a baixo


a parte de cima e a parte de baixo, que eu indento para tu.
Reply
#3

Aqui estб a linha:

PHP Code:
if(strcmp(cmd"/dancar3"true) == 0) {if(noevento[playerid] == 1){
SendClientMessage(playeridVermelho"[ERRO] Vocк nгo pode usar Animes no Evento!");
return 
;
}
if(
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
GameTextForPlayer(playerid"~r~/parar"80001);
SetPlayerSpecialAction (playeridSPECIAL_ACTION_DANCE3);
anim[playerid] = 1;
return 
1;
}

Reply
#4

Quote:
Originally Posted by ZaturN
View Post
Aqui estб a linha:

PHP Code:
if(strcmp(cmd"/dancar3"true) == 8) {if(noevento[playerid] == 1){
SendClientMessage(playeridVermelho"[ERRO] Vocк nгo pode usar Animes no Evento!");
return 
;
}
if(
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
GameTextForPlayer(playerid"~r~/parar"80001);
SetPlayerSpecialAction (playeridSPECIAL_ACTION_DANCE3);
anim[playerid] = 1;
return 
1;
}

Arrumando

Tu deu edit no codigo ¬¬

PHP Code:
if(strcmp(cmd"/dancar3"true) == 0)
{
    if(
noevento[playerid] == 1) return SendClientMessage(playeridVermelho"[ERRO] Vocк nгo pode usar Animes no Evento!");
    if(
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        
GameTextForPlayer(playerid"~r~/parar"80001);
        
SetPlayerSpecialAction (playeridSPECIAL_ACTION_DANCE3);
        
anim[playerid] = 1;
    }
    return 
1;

Reply
#5

Vlw, funcionou.



Tem como vocк arrumar sу este ultimo.


Warning:
PHP Code:
C:\Users\Erickson\Desktop\brvgm.pwn(1511) : warning 217loose indentation 
Linha:
PHP Code:
AreaDrogas GangZoneCreate(2324.754394, -705.8099972428.754394, -577.809997); 
Sу tem esta linha.
Reply
#6

Quote:
Originally Posted by ZaturN
View Post
Vlw, funcionou.



Tem como vocк arrumar sу este ultimo.


Warning:
PHP Code:
C:\Users\Erickson\Desktop\brvgm.pwn(1511) : warning 217loose indentation 
Linha:
PHP Code:
AreaDrogas GangZoneCreate(2324.754394, -705.8099972428.754394, -577.809997); 
Sу tem esta linha.
Manda o codigo inteiro.
Reply
#7

Nгo tem o cуdigo inteiro sу tem essa linha olha ae.

PHP Code:
public OnGameModeInit()
{
    
ImagemConnect TextDrawCreate(-1.000000, -1.000000"loadsc12:loadsc12");
    
TextDrawBackgroundColor(ImagemConnect255);
    
TextDrawFont(ImagemConnect4);
    
TextDrawLetterSize(ImagemConnect0.5000001.000000);
    
TextDrawColor(ImagemConnect, -1);
    
TextDrawSetOutline(ImagemConnect0);
    
TextDrawSetProportional(ImagemConnect1);
    
TextDrawSetShadow(ImagemConnect1);
    
TextDrawUseBox(ImagemConnect1);
    
TextDrawBoxColor(ImagemConnect255);
    
TextDrawTextSize(ImagemConnect645.000000450.000000);
AreaDrogas GangZoneCreate(2324.754394, -705.8099972428.754394, -577.809997);
AfkText TextDrawCreate(168.000000319.000000,"Voce esta ausente ~p~/afk");
TextDrawAlignment(AfkText0);
TextDrawBackgroundColor(AfkText0x000000ff);
TextDrawFont(AfkText1);
TextDrawLetterSize(AfkText,1.0000002.699999);
TextDrawColor(AfkText0xffffffff);
TextDrawSetOutline(AfkText1);
TextDrawSetProportional(AfkText1);
TextDrawSetShadow(AfkText1);
AfkBackText TextDrawCreate(248.000000351.000000,"Para voltar ao jogo digite ~p~/on");
TextDrawAlignment(AfkBackText0);
TextDrawBackgroundColor(AfkBackText0x000000ff);
TextDrawFont(AfkBackText1);
TextDrawLetterSize(AfkBackText,0.2999991.100000);
TextDrawColor(AfkBackText0xffffffff);
TextDrawSetOutline(AfkBackText1);
TextDrawSetProportional(AfkBackText1);
TextDrawSetShadow(AfkBackText1); 
У ela ali no meio dessas TextDraw, ela й uma GangZone
Reply
#8

Quote:
Originally Posted by ZaturN
View Post
Nгo tem o cуdigo inteiro sу tem essa linha olha ae.

PHP Code:
public OnGameModeInit()
{
    
ImagemConnect TextDrawCreate(-1.000000, -1.000000"loadsc12:loadsc12");
    
TextDrawBackgroundColor(ImagemConnect255);
    
TextDrawFont(ImagemConnect4);
    
TextDrawLetterSize(ImagemConnect0.5000001.000000);
    
TextDrawColor(ImagemConnect, -1);
    
TextDrawSetOutline(ImagemConnect0);
    
TextDrawSetProportional(ImagemConnect1);
    
TextDrawSetShadow(ImagemConnect1);
    
TextDrawUseBox(ImagemConnect1);
    
TextDrawBoxColor(ImagemConnect255);
    
TextDrawTextSize(ImagemConnect645.000000450.000000);
AreaDrogas GangZoneCreate(2324.754394, -705.8099972428.754394, -577.809997);
AfkText TextDrawCreate(168.000000319.000000,"Voce esta ausente ~p~/afk");
TextDrawAlignment(AfkText0);
TextDrawBackgroundColor(AfkText0x000000ff);
TextDrawFont(AfkText1);
TextDrawLetterSize(AfkText,1.0000002.699999);
TextDrawColor(AfkText0xffffffff);
TextDrawSetOutline(AfkText1);
TextDrawSetProportional(AfkText1);
TextDrawSetShadow(AfkText1);
AfkBackText TextDrawCreate(248.000000351.000000,"Para voltar ao jogo digite ~p~/on");
TextDrawAlignment(AfkBackText0);
TextDrawBackgroundColor(AfkBackText0x000000ff);
TextDrawFont(AfkBackText1);
TextDrawLetterSize(AfkBackText,0.2999991.100000);
TextDrawColor(AfkBackText0xffffffff);
TextDrawSetOutline(AfkBackText1);
TextDrawSetProportional(AfkBackText1);
TextDrawSetShadow(AfkBackText1); 
У ela ali no meio dessas TextDraw, ela й uma GangZone
Substitua ai

PHP Code:
public OnGameModeInit()
{
    
ImagemConnect TextDrawCreate(-1.000000, -1.000000"loadsc12:loadsc12"); TextDrawBackgroundColor(ImagemConnect255); TextDrawFont(ImagemConnect4); TextDrawLetterSize(ImagemConnect0.5000001.000000);
    
TextDrawColor(ImagemConnect, -1); TextDrawSetOutline(ImagemConnect0); TextDrawSetProportional(ImagemConnect1); TextDrawSetShadow(ImagemConnect1);TextDrawUseBox(ImagemConnect1);
    
TextDrawBoxColor(ImagemConnect255); TextDrawTextSize(ImagemConnect645.000000450.000000);
    
AreaDrogas GangZoneCreate(2324.754394, -705.8099972428.754394, -577.809997);
    
AfkText TextDrawCreate(168.000000319.000000,"Voce esta ausente ~p~/afk"); TextDrawAlignment(AfkText0); TextDrawBackgroundColor(AfkText0x000000ff); TextDrawFont(AfkText1);
    
TextDrawLetterSize(AfkText,1.0000002.699999); TextDrawColor(AfkText0xffffffff); TextDrawSetOutline(AfkText1); TextDrawSetProportional(AfkText1); TextDrawSetShadow(AfkText1);
    
AfkBackText TextDrawCreate(248.000000351.000000,"Para voltar ao jogo digite ~p~/on"); TextDrawAlignment(AfkBackText0); TextDrawBackgroundColor(AfkBackText0x000000ff); TextDrawFont(AfkBackText1);
    
TextDrawLetterSize(AfkBackText,0.2999991.100000); TextDrawColor(AfkBackText0xffffffff); TextDrawSetOutline(AfkBackText1); TextDrawSetProportional(AfkBackText1); TextDrawSetShadow(AfkBackText1); 
Reply
#9

Ei nгo foi mas deixa, identa esse comandos para mim:

PHP Code:
if(strcmp(cmd"/darcomb"true) == 0){
new 
tmp[256];
new 
msg[256];
new 
petroleo;
new 
plidcomb;
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
format(filesizeof(file), PASTA_CONTASaname);
tmp strtok(cmdtextidx);
if(
dini_Int(file"Profissao") == Frentista || IsPlayerAdmin(playerid) || pAdmin[playerid] > 3){
if(!
strlen(tmp)){
SendClientMessage(playeridVermelho"[ERRO] Use: /darcomb [id] [litros]");
return 
1;
}
plid strval(tmp);
tmp strtok(cmdtextidx);
if(!
strlen(tmp)) {
SendClientMessage(playeridVermelho"[ERRO] Use: /darcomb [id] [litros]");
return 
1;
}
comb strval(tmp);
if(
comb 100 || comb <= 0){
SendClientMessage(playeridVermelho"[ERRO] Quantidade invбlida. Os valores devem ser de 1 а 100.");
return 
1;
}
if(
IsPlayerConnected(plid)){
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(file2sizeof(file2), PASTA_CONTASpname);
if((
dini_Int(file2"Combustivel") + comb) < 100){
format(msg,sizeof(msg),"(INFO) Um frentista abasteceu %d litros de combustнvel em seu tanque, totalizando %d litros",comb,petroleo);
SendClientMessage(plid,COLOR_GREEN,msg);
petroleo dini_Int(file2"Combustivel") + comb;
dini_IntSet(file2"Combustivel"petroleo);
SendClientMessage(plid,COLOR_GREEN,"(INFO) Agora nгo gaste atoa!");
SendClientMessage(playerid,COLOR_GREEN,"(INFO) Combustнvel fornecido.");
return 
1;
}
else if((
dini_Int(file2"Combustivel") + comb) >= 100){
dini_IntSet(file2"Combustivel"100);
format(msg,sizeof(msg),"(INFO) Um Frentista completou seu tanque, colocando %d litros",petroleo);
petroleo 100 dini_Int(file2"Combustivel");
SendClientMessage(plid,COLOR_GREEN,msg);
SendClientMessage(plid,COLOR_GREEN,"(INFO) Economize se nгo vai ficar a pй");
SendClientMessage(playerid,COLOR_GREEN,"(INFO) Combustivel fornecido.");
return 
1;
}
}else{
SendClientMessage(playeridVermelho"[ERRO] Jogador nгo conectado/logado.");
return 
1;
}
}else{
SendClientMessage(playeridVermelho"[ERRO] Vocк nгo tem permissгo!");
return 
1;
}

Reply
#10

http://tabulador.medianewsonline.com/
Reply
#11

http://www.jotaquery.com.br/ferramentas/identar/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)