SA-MP Forums Archive
Help! pls - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help! pls (/showthread.php?tid=654666)



Help! pls - LOLITO - 02.06.2018

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"); 



Re: Help! pls - andrejc999 - 02.06.2018

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");



Re: Help! pls - LOLITO - 02.06.2018

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;




Re: Help! pls - PawnFox - 03.06.2018

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


Re: Help! pls - LOLITO - 03.06.2018

Already solved thanks


Re: Help! pls - GTLS - 03.06.2018

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.