SA-MP Forums Archive
loose indentation - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: loose indentation (/showthread.php?tid=154165)



loose indentation - by_karizma - 12.06.2010

Код:
C:\Users\samet\Desktop\samp\filterscripts\LuxAdmin.pwn(7698) : warning 217: loose indentation

Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.

Код:
if(!strcmp(cmdtext, "/ironman", true))
	{
    if(AccInfo[playerid][Level] < 1) return SendClientMessage(playerid,0xff00ffaa,"You are not authorised to use this command"); // this line checks if the player is a admin or not.
		if((flying[playerid] = !flying[playerid]))
		{
		  new Float:x, Float:y, Float:z;
		  GetPlayerPos(playerid, x, y, z);
		  SetPlayerHealth(playerid, 1000000000.0);
		  SetTimerEx("IronMan", 100, 0, "d", playerid);
		  SetTimerEx("DestroyMe", 500, 0, "d", CreateObject(2780, x, y, z - 3.0, 0.0, 0.0, 0.0));
		}
		else
		  SetPlayerHealth(playerid, 100.0);
 

	return 0;
}

thanks


Re: loose indentation - by_karizma - 12.06.2010

i found my problem


SOLVED


Re: loose indentation - NitroSWA - 12.06.2010

if u pressed TAB all the time, theres no need for
u can also use
#pragma tabsize 0


Re: loose indentation - Flashy - 12.06.2010

It is the first bracket that is wrong or on 3. line there is 1 more tab.
But you fix that Next time search for it on your script before make a topic.