Raised This Month: $ Target: $400
 0% 

loose indentation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-22-2006 , 17:37   Re: loose indentation
Reply With Quote #1

loose indentation is just a warning (and does not affect the code). all it really wants is that you line up your lines. your return line should have the same amount of tabs/spaces as the bracket before it.

AMXX studio has a command to do this for you.

edit:

so instead of code looking like this
Code:
	public zomg2_checker()
{
if(blah_blah)
{
	happy = true
		zomg = false
}
	if(zomg)
zomg2 = true
}
it should be
Code:
public zomg2_checker()
{
	if(blah_blah)
	{
		happy = true
		zomg = false
	}
	if(zomg)
		zomg2 = true
}

Last edited by Emp`; 12-22-2006 at 17:40.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
geertjan88
Member
Join Date: May 2006
Old 12-22-2006 , 17:40   Re: loose indentation
Reply With Quote #2

Well thanks. But what is the command and what for example wrong in the code i posted?
__________________
if i help? +karma!
geertjan88 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode