loose indentation
#1

Код:
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
Reply
#2

i found my problem


SOLVED
Reply
#3

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

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.
Reply


Forum Jump:


Users browsing this thread: