Warning Irritante -
GuiKommander - 20.01.2017
No caso o warning й essa na print:
http://imgur.com/a/aHArm
C:\Users\USER\Desktop\GM NWD 1\gamemodes\PF.pwn(47683) : warning 217: loose indentation
~~~~~~~~~~~~~~~~~~
IP : 198.50.195.143:7794 Sua diversгo com o Pй direito!
Re: Warning Irritante -
IlanZ - 20.01.2017
Use tabulador de codigos da iPs Team
http://tabulador.medianewsonline.com/
Re: Warning Irritante -
RazorGuigo - 20.01.2017
Manda o code q eu resolvo
Re: Warning Irritante -
Cheleber_Pausini - 20.01.2017
code bro
Re: Warning Irritante -
GuiKommander - 20.01.2017
if( !strcmp( cmd, "/veiculo", true ))
{
if( !IsPlayerInAnyVehicle( playerid ))
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк nгo estб em um veнculo !" );
return 1;
}
ShowPlayerDialog(playerid, VEICULO_CMDS, DIALOG_STYLE_LIST, "» Seu Veiculo","» Trancar\n» Destrancar\n» Farol Ligado\n» Farol Desligado","Selecionar","Cancelar");
SendClientMessage(playerid, COLOR_AMARELO, "» Mais opзхes estгo sendo feitas.. Aguarde!");
return 1;
} // Linha do comando
// ----------------------------------------------------------------------------------------------- //
if(dialogid == VEICULO_CMDS)
{
if(response)
{
if(listitem == 0)
{
new
v = GetPlayerVehicleID( playerid )
;
new
Float:i_x, Float:i_y, Float:i_z
;
GetPlayerPos( playerid, i_x, i_y, i_z );
{
foreach(Player, i )
{
if( i != playerid )
{
SetVehicleParamsForPlayer( v, i, 0, 1 );
}
}
SendClientMessage(playerid, COLOR_AMARELO,"| INFO | Veнculo trancado!");
return 1;
}
}
if(listitem == 1)
{
foreach(Player, i )
{
SetVehicleParamsForPlayer( playerid, i, 0, 0 );
}
SendClientMessage( playerid, COLOR_AMARELO, "| INFO | Veнculo destrancado!" );
//PlayerPlaySound( playerid, 1056, i_x, i_y, i_z );
return 1;
} // Trancar veiculo ou destrancar .
}
if(listitem == 2) // aqui a linha do warning .
{
new mot, lu, alar, por, cap, porma, ob;
new carroa = GetPlayerVehicleID( playerid );
if( carroa != INVALID_VEHICLE_ID )
{
GetVehicleParamsEx( carroa, mot, lu, alar, por, cap, porma, ob );
SetVehicleParamsEx( carroa, mot, VEHICLE_PARAMS_ON, alar, por, cap, porma, ob );
SendClientMessage( playerid, COLOR_SISTEMA, "| INFO | Farol Ligado com sucesso!" );
//return 1;
}
}
if(listitem == 3)
{
new mot, lu, alar, por, cap, porma, ob;
new carroa = GetPlayerVehicleID( playerid );
if( carroa != INVALID_VEHICLE_ID )
{
GetVehicleParamsEx( carroa, mot, lu, alar, por, cap, porma, ob );
SetVehicleParamsEx( carroa, mot, VEHICLE_PARAMS_OFF, alar, por, cap, porma, ob );
SendClientMessage( playerid, COLOR_SISTEMA, "| INFO | Farol desligado com sucesso!" );
return 1;
}
}
}
Re: Warning Irritante -
RazorGuigo - 20.01.2017
coloque entre [ PHP] ...code... [ /PHP]!
Re: Warning Irritante -
FallweN - 20.01.2017
Troque por esse:
PHP код:
if( !strcmp( cmd, "/veiculo", true ))
{
if( !IsPlayerInAnyVehicle( playerid ))
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк nгo estб em um veнculo !" );
return 1;
}
ShowPlayerDialog(playerid, VEICULO_CMDS, DIALOG_STYLE_LIST, "» Seu Veiculo","» Trancar\n» Destrancar\n» Farol Ligado\n» Farol Desligado","Selecionar","Cancelar");
SendClientMessage(playerid, COLOR_AMARELO, "» Mais opзхes estгo sendo feitas.. Aguarde!");
return 1;
} // Linha do comando
// ----------------------------------------------------------------------------------------------- //
if(dialogid == VEICULO_CMDS)
{
if(response)
{
if(listitem == 0)
{
new
v = GetPlayerVehicleID( playerid )
;
new
Float:i_x, Float:i_y, Float:i_z
;
GetPlayerPos( playerid, i_x, i_y, i_z );
{
foreach(Player, i )
{
if( i != playerid )
{
SetVehicleParamsForPlayer( v, i, 0, 1 );
}
}
SendClientMessage(playerid, COLOR_AMARELO,"| INFO | Veнculo trancado!");
return 1;
}
}
if(listitem == 1)
{
foreach(Player, i )
{
SetVehicleParamsForPlayer( playerid, i, 0, 0 );
}
SendClientMessage( playerid, COLOR_AMARELO, "| INFO | Veнculo destrancado!" );
//PlayerPlaySound( playerid, 1056, i_x, i_y, i_z );
return 1;
} // Trancar veiculo ou destrancar .
if(listitem == 2) // aqui a linha do warning .
{
new mot, lu, alar, por, cap, porma, ob;
new carroa = GetPlayerVehicleID( playerid );
if( carroa != INVALID_VEHICLE_ID )
{
GetVehicleParamsEx( carroa, mot, lu, alar, por, cap, porma, ob );
SetVehicleParamsEx( carroa, mot, VEHICLE_PARAMS_ON, alar, por, cap, porma, ob );
SendClientMessage( playerid, COLOR_SISTEMA, "| INFO | Farol Ligado com sucesso!" );
//return 1;
}
}
if(listitem == 3)
{
new mot, lu, alar, por, cap, porma, ob;
new carroa = GetPlayerVehicleID( playerid );
if( carroa != INVALID_VEHICLE_ID )
{
GetVehicleParamsEx( carroa, mot, lu, alar, por, cap, porma, ob );
SetVehicleParamsEx( carroa, mot, VEHICLE_PARAMS_OFF, alar, por, cap, porma, ob );
SendClientMessage( playerid, COLOR_SISTEMA, "| INFO | Farol desligado com sucesso!" );
return 1;
}
}
}
}
@Edit
Quote:
Originally Posted by Whoo
FallweN o erro vai persistir repare que o if(listitem == 2) esta fora do response
|
Vdd vlw por avisar, atualizado.
Re: Warning Irritante - Whoo - 20.01.2017
FallweN o erro vai persistir repare que o if(listitem == 2) esta fora do response
Re: Warning Irritante -
GuiKommander - 20.01.2017
Quote:
Originally Posted by FallweN
Troque por esse:
PHP код:
if( !strcmp( cmd, "/veiculo", true ))
{
if( !IsPlayerInAnyVehicle( playerid ))
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк nгo estб em um veнculo !" );
return 1;
}
ShowPlayerDialog(playerid, VEICULO_CMDS, DIALOG_STYLE_LIST, "» Seu Veiculo","» Trancar\n» Destrancar\n» Farol Ligado\n» Farol Desligado","Selecionar","Cancelar");
SendClientMessage(playerid, COLOR_AMARELO, "» Mais opзхes estгo sendo feitas.. Aguarde!");
return 1;
} // Linha do comando
// ----------------------------------------------------------------------------------------------- //
if(dialogid == VEICULO_CMDS)
{
if(response)
{
if(listitem == 0)
{
new
v = GetPlayerVehicleID( playerid )
;
new
Float:i_x, Float:i_y, Float:i_z
;
GetPlayerPos( playerid, i_x, i_y, i_z );
{
foreach(Player, i )
{
if( i != playerid )
{
SetVehicleParamsForPlayer( v, i, 0, 1 );
}
}
SendClientMessage(playerid, COLOR_AMARELO,"| INFO | Veнculo trancado!");
return 1;
}
}
if(listitem == 1)
{
foreach(Player, i )
{
SetVehicleParamsForPlayer( playerid, i, 0, 0 );
}
SendClientMessage( playerid, COLOR_AMARELO, "| INFO | Veнculo destrancado!" );
//PlayerPlaySound( playerid, 1056, i_x, i_y, i_z );
return 1;
} // Trancar veiculo ou destrancar .
if(listitem == 2) // aqui a linha do warning .
{
new mot, lu, alar, por, cap, porma, ob;
new carroa = GetPlayerVehicleID( playerid );
if( carroa != INVALID_VEHICLE_ID )
{
GetVehicleParamsEx( carroa, mot, lu, alar, por, cap, porma, ob );
SetVehicleParamsEx( carroa, mot, VEHICLE_PARAMS_ON, alar, por, cap, porma, ob );
SendClientMessage( playerid, COLOR_SISTEMA, "| INFO | Farol Ligado com sucesso!" );
//return 1;
}
}
if(listitem == 3)
{
new mot, lu, alar, por, cap, porma, ob;
new carroa = GetPlayerVehicleID( playerid );
if( carroa != INVALID_VEHICLE_ID )
{
GetVehicleParamsEx( carroa, mot, lu, alar, por, cap, porma, ob );
SetVehicleParamsEx( carroa, mot, VEHICLE_PARAMS_OFF, alar, por, cap, porma, ob );
SendClientMessage( playerid, COLOR_SISTEMA, "| INFO | Farol desligado com sucesso!" );
return 1;
}
}
}
}
@Edit
Vdd vlw por avisar, atualizado.
|
VLW MANO !! DEU CERTIM AKI +
VLW A TODOS QUE TENTARAM ME ajudar
Re: Warning Irritante -
Andersonsouza - 21.01.2017
Tem Quer Explicar o Por Quer Do Erro Assim Ele Vai Ele Nгo Vai Saber Resolver Erros Futuros
__________________________________________________ _______________________________________
O Erro Significa Quer Essa Linha Estar Fora Do Padrгo Das Outra - Simplificando voce precisa orgnaizala
Para Corrigir erros Futuros use esse site do @IPsBruno Quer Jб mim ajudou bastando o site й :
tabulador.medianewsonline.com