[Tutorial] How to fix warning 217: loose indentation
#21

Quote:
Originally Posted by Christian7073
View Post
you can use
#pragma tabsize 0
Quote:
Originally Posted by sonnkz
View Post
i in this problem use #pragma tabsize 0 and solved problems with Loose identation
Fix this, then:
Code:
#include <a_samp>

public OnFilterScriptInit()
{
new iVar, iVar2, iVar3;
//some magical way of assigning data to the variables from any sort of input
if(iVar == iVar2)
{
if(iVar2 == iVar3)
{
if(iVar == iVar3)
{
print("they're all equal!");
}
}
}
}
}
From that I can't see what's wrong (although I do know what's wrong obviously). However, from this:
Code:
#include <a_samp>

public OnFilterScriptInit()
{
	new iVar, iVar2, iVar3;
	//some magical way of assigning data to the variables from any sort of input
	if(iVar == iVar2)
	{
		if(iVar2 == iVar3)
		{
			if(iVar == iVar3)
			{
				print("they're all equal!");
			}
		}
	}
	}
}
That is exactly why you should indent rather than using your #pragma tabsize directive. (It's also why I refuse to help people with ridiculous indentation)

On topic - this is a good tutorial, but some people are too ignorant to listen because "the #pragma tabsize exists so we don't need this lololol"...
Reply


Messages In This Thread
How to fix warning 217: loose indentation - by Mean - 23.05.2011, 08:51
Re: How to fix warning 217: loose indentation - by Mean - 23.05.2011, 16:21
Respuesta: How to fix warning 217: loose indentation - by Host-samp - 23.05.2011, 20:45
Re: How to fix warning 217: loose indentation - by [L3th4l] - 23.05.2011, 20:48
Re: How to fix warning 217: loose indentation - by TheGarfield - 23.05.2011, 20:55
Re: How to fix warning 217: loose indentation - by Mean - 25.05.2011, 09:16
Re: How to fix warning 217: loose indentation - by HyperZ - 25.05.2011, 10:50
Re: How to fix warning 217: loose indentation - by Lorenc_ - 25.05.2011, 11:38
Re: How to fix warning 217: loose indentation - by leong124 - 25.05.2011, 14:47
Re: How to fix warning 217: loose indentation - by Michael@Belgium - 26.05.2011, 07:15
Re: How to fix warning 217: loose indentation - by [WA]iRonan - 16.01.2013, 10:13
Re: How to fix warning 217: loose indentation - by Y_Less - 16.01.2013, 10:25
Re: How to fix warning 217: loose indentation - by [WA]iRonan - 16.01.2013, 10:49
Re: How to fix warning 217: loose indentation - by Superdude - 16.01.2013, 11:59
Re: How to fix warning 217: loose indentation - by Y_Less - 16.01.2013, 12:19
Re: How to fix warning 217: loose indentation - by [WA]iRonan - 17.01.2013, 09:40
Re: How to fix warning 217: loose indentation - by JoBullet - 17.01.2013, 16:06
Re: How to fix warning 217: loose indentation - by Christian7073 - 10.04.2013, 14:45
Respuesta: How to fix warning 217: loose indentation - by sonnkz - 10.04.2013, 18:53
Re: How to fix warning 217: loose indentation - by RealCop228 - 10.04.2013, 19:10
Re: Respuesta: How to fix warning 217: loose indentation - by Ash. - 10.04.2013, 19:16
Re: How to fix warning 217: loose indentation - by MP2 - 11.04.2013, 08:11
Re: How to fix warning 217: loose indentation - by Patrick - 11.04.2013, 09:34
Re: How to fix warning 217: loose indentation - by biduaxe - 29.07.2013, 04:34
Re: How to fix warning 217: loose indentation - by maaz - 05.12.2013, 19:04
Re: How to fix warning 217: loose indentation - by iZN - 05.12.2013, 19:11
Re: How to fix warning 217: loose indentation - by maaz - 05.12.2013, 19:13
Re: How to fix warning 217: loose indentation - by Y_Less - 05.12.2013, 21:32
Re: How to fix warning 217: loose indentation - by maaz - 06.12.2013, 02:53

Forum Jump:


Users browsing this thread: 1 Guest(s)