[Ajuda] lose indentation
#1

queria resolver este problema, podia- explicar mais ou menos como e que se resolve estes asivos?
PHP код:
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(16340) : warning 217loose indentation
C
:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(16341) : warning 217loose indentation
C
:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(16343) : warning 217loose indentation
C
:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(16344) : warning 217loose indentation
C
:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(29482) : warning 217loose indentation
C
:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(29486) : warning 217loose indentation
C
:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(29497) : warning 217loose indentation
C
:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(29501) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
Header size
:          14012 bytes
Code size
:          3162848 bytes
Data size
:          2977152 bytes
Stack
/heap size:      16384 bytesestimated maxusageunknowndue to recursion
Total requirements
6170396 bytes
8 Warnings

linhas 16341, 16343 e 16344
PHP код:
new vehicleid GetPlayerVehicleID(playerid);
      if(
IsPlayerNPC(playerid)) return 1;
             
xacalaca[playerid] ++;
            
SetTimerEx("desxacalaca"1000,false,"i",playerid);
           
PlayerInactivity[playerid] = 0;
    if(
newstate == PLAYER_STATE_ONFOOT
primeira linha 16339, segunda 16340, terceira 16341, quarta 16342, quinta 16343 e por ultimo 16344


OUTRO
PHP код:
SendClientMessage(playerid0x2641FEFF#Portao aberto);
    
}
      else
    {
    
SendClientMessage(playerid, -1"Vocк nгo й um Adminstrador, pois nгo pode abrir este portгo !");
   }
   return 
true;
}
    if(
strcmp(cmd"/pad"true) == 0)
      {
          if(
PlayerInfo[playerid][pAdmin] > 0)
       {
        
MoveObject(padmd1548.3618,-1714.3406,37.1879,3,0.0000,0.0000,0.0000);
        
SetTimer(#Movepadmd, 5000, 0);
        
SendClientMessage(playerid0x2641FEFF#Portгo Aberto!);
    
}
    else
    {
        
SendClientMessage(playerid, -1"Vocк nгo й um Adminstrador, pois nгo pode abrir este portгo !");
    }
    return 
true;

Conseguem me corrigir os erros
Reply
#2

Alinhe todas as linhas : Ex: new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerNPC(playerid)) return 1;
xacalaca[playerid] ++;
SetTimerEx("desxacalaca", 1000,false,"i",playerid);
PlayerInactivity[playerid] = 0;
if(newstate == PLAYER_STATE_ONFOOT)
Reply
#3

Falta de identaзгo

PHP код:
    if(strcmp(cmd"/pad"true) == 0)
    {
        if(
PlayerInfo[playerid][pAdmin] > 0)
        {
            
MoveObject(padmd1548.3618,-1714.3406,37.1879,3,0.0000,0.0000,0.0000);
            
SetTimer(#Movepadmd, 5000, 0);
            
SendClientMessage(playerid0x2641FEFF#Portгo Aberto!);
        
}
        else
        {
            
SendClientMessage(playerid, -1"Vocк nгo й um Adminstrador, pois nгo pode abrir este portгo !");
        }
        return 
true;
    } 
Reply
#4

http://pt.wikipedia.org/wiki/Indenta%C3%A7%C3%A3o

recomendo a ler isso para saber o que й

pawn Код:
if(strcmp(cmd, "/pad", true) == 0)
{
    if(PlayerInfo[playerid][pAdmin] == 0)
        return SendClientMessage(playerid, -1, "Vocк nгo й um Adminstrador, pois nгo pode abrir este portгo !");
    MoveObject(padmd, 1548.3618,-1714.3406,37.1879,3,0.0000,0.0000,0.0000);
    SetTimer("Movepadmd", 5000, 0);
    SendClientMessage(playerid, 0x2641FEFF, "Portгo Aberto!");
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)