[Ajuda] loose indentation :\
#1

Nгo To entendendo o Porque do Warning :\

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{

switch(classid)
{
    case 0:
    {
    SetPlayerTeam(playerid, TIME_LADRAO);
    GameTextForPlayer(playerid, "Ladrгo", 2500, 3);
    }
    case 1:
    {
    SetPlayerTeam(playerid, TIME_POLICIA);
    GameTextForPlayer(playerid, "Policia", 2500, 3);
    }
   
    }

    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
Alguem ?
Reply
#2

Indentaзгo.
Reply
#3

PHP код:
public OnPlayerRequestClass(playeridclassid)
{

switch(
classid)
{
    case 
0:
    {
        
SetPlayerTeam(playeridTIME_LADRAO);
        
GameTextForPlayer(playerid"Ladrгo"25003);
    }
    case 
1:
    {
        
SetPlayerTeam(playeridTIME_POLICIA);
        
GameTextForPlayer(playerid"Policia"25003);
    }

    }

    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;

tenta
Reply
#4

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
Indentaзгo.
kkkkkkkkkkkkkkkk AFF Riichard :\ Onde й que ta errado do Cуdigo ?
Reply
#5

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    switch(
classid)
    {
         case 
0:
         {
              
SetPlayerTeam(playeridTIME_LADRAO);
              
GameTextForPlayer(playerid"Ladrгo"25003);
         }
         case 
1:
         {
              
SetPlayerTeam(playeridTIME_POLICIA);
              
GameTextForPlayer(playerid"Policia"25003);
         }

    }
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;

Reply
#6

Quote:
Originally Posted by Lucas-Fc
Посмотреть сообщение
kkkkkkkkkkkkkkkk AFF Riichard :\ Onde й que ta errado do Cуdigo ?
lol ?
Reply
#7

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    switch(
classid)
    {
         case 
0:
         {
              
SetPlayerTeam(playeridTIME_LADRAO);
              
GameTextForPlayer(playerid"Ladrгo"25003);
         }
         case 
1:
         {
              
SetPlayerTeam(playeridTIME_POLICIA);
              
GameTextForPlayer(playerid"Policia"25003);
         }
    }
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;

Compilou

Agora cara, por favor, me explique o que vocк fez ai ? o cуdigo й o mesmo '-'
Reply
#8

Quote:
Originally Posted by Lucas-Fc
Посмотреть сообщение
Compilou

Agora cara, por favor, me explique o que vocк fez ai ? o cуdigo й o mesmo '-'
Indentaзгo.


This forum requires that you wait 120 seconds between posts. Please try again in 75 seconds.
Reply
#9

Quote:
Originally Posted by Lucas-Fc
Посмотреть сообщение
Compilou

Agora cara, por favor, me explique o que vocк fez ai ? o cуdigo й o mesmo '-'
TAB "-' ali em

EXEMPLO:

ASSIM irб dar loose indentaction << axo q й isso o nome:

PHP код:
    case 0:
    {
    
SetPlayerTeam(playeridTIME_LADRAO);
    
GameTextForPlayer(playerid"Ladrгo"25003);
    } 
assim nгo:

PHP код:
    case 0:
    {
        
SetPlayerTeam(playeridTIME_LADRAO);
        
GameTextForPlayer(playerid"Ladrгo"25003);
    } 
Reply
#10

Loose indentation

eis um tutorial q ira lhe ajudar:
https://sampforum.blast.hk/showthread.php?tid=170773
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)