[Ajuda] Warningss...
#1

Bom gente gostaria de ajuda nesses 2 pequenos warning's

Код:
C:\Users\******\Desktop\VSL\gamemodes\LSLife.pwn(21182) : warning 217: loose indentation
C:\Users\******\Desktop\VSL\gamemodes\LSLife.pwn(21324) : warning 217: loose indentation
LINHAS:

21182:

Код:
if(strcmp("/handsup", cmd, true) == 0)
21324

Код:
	if(strcmp(cmd, "/senha", true) == 0)
Reply
#2

Problema na Indentaзгo do cуdigo.

Soluзгo:

pawn Код:
blabla
blbla
Deixei um em baixo do outro. como no exemplo acima.


Desse jeito abaixo ira dar Loose:
pawn Код:
blabla
            blabla
Reply
#3

ei tipo eu peguei o CODE do [FEK] de Animes

Код:
if(strcmp("/handsup", cmd, true) == 0)
{
SetPlayerSpecialAction(playerid, 10);
return 1;
}
if(strcmp("/ligar", cmd, true) == 0)
{
SetPlayerSpecialAction(playerid, 11);
return 1;
}
if(strcmp("/desligar", cmd, true) == 0)
{
SetPlayerSpecialAction(playerid, 13);
return 1;
}
if(strcmp("/bebado", cmd, true) == 0)
{
ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
return 1;
}
if(strcmp("/bomba", cmd, true) == 0)
{
ClearAnimations(playerid);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
return 1;
}
if(strcmp("/apontar", cmd, true) == 0)
{
ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
return 1;
}
if(strcmp("/merda", cmd, true) == 0)
{
ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
return 1;
}
if(strcmp("/mascararse", cmd, true) == 0)
{
ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
return 1;
}
if(strcmp("/roubar", cmd, true) == 0)
{
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
return 1;
}
if(strcmp("/cruzarb", cmd, true) == 0)
{
ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
return 1;
}
if(strcmp("/deitar", cmd, true) == 0)
{
ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
return 1;
}
if(strcmp("/abaixar", cmd, true) == 0)
{
ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
return 1;
}
if(strcmp("/vomitar", cmd, true) == 0)
{
ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
return 1;
}
if(strcmp("/comer", cmd, true) == 0)
{
ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
return 1;
}
if(strcmp("/rap", cmd, true) == 0)
{
ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
return 1;
}
if(strcmp("/passaramao", cmd, true) == 0)
{
ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
return 1;
}
if(strcmp("/cobrar", cmd, true) == 0)
{
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
return 1;
}
if(strcmp("/overdose", cmd, true) == 0)
{
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
return 1;
}
if(strcmp("/fumar", cmd, true) == 0)
{
ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
return 1;
}
if(strcmp("/fumar2", cmd, true) == 0)
{
ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
return 1;
}
if(strcmp("/sentar", cmd, true) == 0)
{
ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
return 1;
}
if(strcmp("/conversar", cmd, true) == 0)
{
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
return 1;
}
if(strcmp("/fodase", cmd, true) == 0)
{
ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
return 1;
}
if(strcmp("/taichi", cmd, true) == 0)
{
ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
return 1;
}
if(strcmp("/observar", cmd, true) == 0)
{
ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
return 1;
}
//---------------------Lista Animaзхes------------------------------------
if(strcmp("/animes", cmd, true) == 0)
{
	SendClientMessage(playerid, WHITE, "[Fek Drakon's]:Lista de Animes :");
	SendClientMessage(playerid, WHITE, "/handsup /ligar /desligar /bebado /bomba /apontar /merda /mascararse");
	SendClientMessage(playerid, WHITE, "/roubar /cruzarb /deitar /abaixar /vomitar /comer /rap /passaramao");
	SendClientMessage(playerid, WHITE, "/cobrar /overdose /fumar /fumar2 /sentar /conversar /fodase /taichi");
	SendClientMessage(playerid, WHITE, "/observar ");
	return 1;
}
Reply
#4

Dai da aqueles Warnings citados acima :/
Reply
#5

pawn Код:
if(strcmp(cmd,"/handsup", true)==0)
tenta por asim'
Reply
#6

pawn Код:
if(strcmp("/handsup", cmd, true) == 0)
{
    SetPlayerSpecialAction(playerid, 10);
    return 1;
}
if(strcmp("/ligar", cmd, true) == 0)
{
    SetPlayerSpecialAction(playerid, 11);
    return 1;
}
if(strcmp("/desligar", cmd, true) == 0)
{
    SetPlayerSpecialAction(playerid, 13);
    return 1;
}
if(strcmp("/bebado", cmd, true) == 0)
{
    ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
    return 1;
}
if(strcmp("/bomba", cmd, true) == 0)
{
    ClearAnimations(playerid);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/apontar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
    return 1;
}
if(strcmp("/merda", cmd, true) == 0)
{
    ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/mascararse", cmd, true) == 0)
{
    ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/roubar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/cruzarb", cmd, true) == 0)
{
    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
    return 1;
}
if(strcmp("/deitar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/abaixar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/vomitar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/comer", cmd, true) == 0)
{
    ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/rap", cmd, true) == 0)
{
    ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/passaramao", cmd, true) == 0)
{
    ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/cobrar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/overdose", cmd, true) == 0)
{
    ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/fumar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/fumar2", cmd, true) == 0)
{
    ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/sentar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/conversar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/fodase", cmd, true) == 0)
{
    ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/taichi", cmd, true) == 0)
{
    ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/observar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
//---------------------Lista Animaзхes------------------------------------
if(strcmp("/animes", cmd, true) == 0)
{
    SendClientMessage(playerid, WHITE, "[Fek Drakon's]:Lista de Animes :");
    SendClientMessage(playerid, WHITE, "/handsup /ligar /desligar /bebado /bomba /apontar /merda /mascararse");
    SendClientMessage(playerid, WHITE, "/roubar /cruzarb /deitar /abaixar /vomitar /comer /rap /passaramao");
    SendClientMessage(playerid, WHITE, "/cobrar /overdose /fumar /fumar2 /sentar /conversar /fodase /taichi");
    SendClientMessage(playerid, WHITE, "/observar ");
    return 1;
}
Aн estб
Reply
#7

pawn Код:
if(strcmp("/handsup", cmd, true) == 0)
{
    SetPlayerSpecialAction(playerid, 10);
    return 1;
}
if(strcmp("/ligar", cmd, true) == 0)
{
    SetPlayerSpecialAction(playerid, 11);
    return 1;
}
if(strcmp("/desligar", cmd, true) == 0)
{
    SetPlayerSpecialAction(playerid, 13);
    return 1;
}
if(strcmp("/bebado", cmd, true) == 0)
{
    ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
    return 1;
}
if(strcmp("/bomba", cmd, true) == 0)
{
    ClearAnimations(playerid);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/apontar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
    return 1;
}
if(strcmp("/merda", cmd, true) == 0)
{
    ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/mascararse", cmd, true) == 0)
{
    ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/roubar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/cruzarb", cmd, true) == 0)
{
    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
    return 1;
}
if(strcmp("/deitar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/abaixar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/vomitar", cmd, true) == 0)
{
A   pplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/comer", cmd, true) == 0)
{
    ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/rap", cmd, true) == 0)
{
    ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/passaramao", cmd, true) == 0)
{
    ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/cobrar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/overdose", cmd, true) == 0)
{
    ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/fumar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/fumar2", cmd, true) == 0)
{
    ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/sentar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/conversar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/fodase", cmd, true) == 0)
{
    ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/taichi", cmd, true) == 0)
{
    ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
if(strcmp("/observar", cmd, true) == 0)
{
    ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
}
//---------------------Lista Animaзхes------------------------------------
if(strcmp("/animes", cmd, true) == 0)
{
    SendClientMessage(playerid, WHITE, "[Fek Drakon's]:Lista de Animes :");
    SendClientMessage(playerid, WHITE, "/handsup /ligar /desligar /bebado /bomba /apontar /merda /mascararse");
    SendClientMessage(playerid, WHITE, "/roubar /cruzarb /deitar /abaixar /vomitar /comer /rap /passaramao");
    SendClientMessage(playerid, WHITE, "/cobrar /overdose /fumar /fumar2 /sentar /conversar /fodase /taichi");
    SendClientMessage(playerid, WHITE, "/observar ");
    return 1;
}
Reply
#8

pawn Код:
if(strcmp("/handsup", cmd, true) == 0)
    {
    SetPlayerSpecialAction(playerid, 10);
    return 1;
    }
    if(strcmp("/ligar", cmd, true) == 0)
    {
    SetPlayerSpecialAction(playerid, 11);
    return 1;
    }
    if(strcmp("/desligar", cmd, true) == 0)
    {
    SetPlayerSpecialAction(playerid, 13);
    return 1;
    }
    if(strcmp("/bebado", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
    return 1;
    }
    if(strcmp("/bomba", cmd, true) == 0)
    {
    ClearAnimations(playerid);
    ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/apontar", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
    return 1;
    }
    if(strcmp("/merda", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/mascararse", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/roubar", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/cruzarb", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
    return 1;
    }
    if(strcmp("/deitar", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/abaixar", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/vomitar", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/comer", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/rap", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/passaramao", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/cobrar", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/overdose", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/fumar", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/fumar2", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/sentar", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/conversar", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/fodase", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/taichi", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
    if(strcmp("/observar", cmd, true) == 0)
    {
    ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
    return 1;
    }
//---------------------Lista Animaзхes------------------------------------
    if(strcmp("/animes", cmd, true) == 0)
    {
        SendClientMessage(playerid, WHITE, "[Fek Drakon's]:Lista de Animes :");
        SendClientMessage(playerid, WHITE, "/handsup /ligar /desligar /bebado /bomba /apontar /merda /mascararse");
        SendClientMessage(playerid, WHITE, "/roubar /cruzarb /deitar /abaixar /vomitar /comer /rap /passaramao");
        SendClientMessage(playerid, WHITE, "/cobrar /overdose /fumar /fumar2 /sentar /conversar /fodase /taichi");
        SendClientMessage(playerid, WHITE, "/observar ");
        return 1;
    }
Reply
#9

@Funeral: Warning Continua

@BreakDrift: Warning Continua

@Diogo123: Warning Continua :/


@Edit: Consegui resolver, diogo OBG foi graзas a vc q consegui...

so mexi numa coisa

AKI vc coloco assim
Код:
if(strcmp("/handsup", cmd, true) == 0)
mais era assim

Код:
	if(strcmp("/handsup", cmd, true) == 0)
Reply
#10

Olhe os cуdigos e coloque todos da Public OnPlayerCommandText no mesmo estilo.


Nossa cara oque todos tento te falar ?

Facepalm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)