Help! pls
#1

Hello, how would you like to know how to remove these warning

PHP код:

//Errors
D:\PROYECTNICE\gamemodes\Nice.pwn(435) : warning 217loose indentation
D
:\PROYECTNICE\gamemodes\Nice.pwn(446) : warning 217loose indentation
//Line
// Line 446
} else Dialog(playeridD_HEIGHTDIALOG_STYLE_INPUT"Height""How tall your character will be?""accept"".");
//Line 435
} else Dialog(playeridD_STATEDIALOG_STYLE_LIST"What state is?""Virginia\nCalifornia\nNevada""accept""Atrбs"); 
Reply
#2

Send some lines above and under those, but I think you just have to put else in a new row.

Код:
} 
else Dialog(playerid, D_HEIGHT, DIALOG_STYLE_INPUT, "Height", "How tall your character will be?", "accept", "."); 

//and

} 
else Dialog(playerid, D_STATE, DIALOG_STYLE_LIST, "What state is?", "Virginia\nCalifornia\nNevada", "accept", "Atrбs");
Reply
#3

Solved, but I have another doubt because I get the same but in a cmd.


PHP код:

D
:\PROYECTNICE\gamemodes\Nice.pwn(706) : warning 217loose indentation 
D
:\PROYECTNICE\gamemodes\Nice.pwn(711) : warning 217loose indentation 
D
:\PROYECTNICE\gamemodes\Nice.pwn(718) : warning 217loose indentation 
//Lines:
format(stringsizeof(string), "* %s (( %s ))."paramsNameUser(playerid)); //706
return 1//711
format(stringsizeof(string), " %s %s."NameUser(playerid), params); //718
//Complete code
CMD:acc(playeridparams[])
{
  if(!
isnull(params)){
  new 
string[128];
     
format(stringsizeof(string), "* %s (( %s ))."paramsNameUser(playerid)); //line 706
     
ProxDetector(30.0playeridstring0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA);
     
SetPlayerChatBubble(playerid,string,0x9ACD32AA,15.0,5000);
   }
   else 
Mensaje(playerid, -1"Use: /acc (action)"); 
   return 
1;//Line 711
}
CMD:ac(playeridparams[])
    {
  if(
isnull(params)) return Mensaje(playerid, -1"Use: /ac (action)");
  new 
string[128];
    
format(stringsizeof(string), " %s %s."NameUser(playerid), params); //Line 718
    
ProxDetector(20.0playeridstring0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA);
      
SetPlayerChatBubble(playerid,string,0xC2A2DAAA,15.0,5000);
    return 
1;

Reply
#4

You must arrange your code or,
Код:
#pragma tabsize 0
https://pastebin.com/NSby250i
Reply
#5

Already solved thanks
Reply
#6

No Dont use #pragma tabsize 0. As Y-LESS said, only fix spaces in your code. There is no other way. tabsize is not a good practice.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)