Raised This Month: $51 Target: $400
 12% 

warning 217: loose indentation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
elpouletorange
Senior Member
Join Date: Oct 2007
Old 03-17-2008 , 18:49   warning 217: loose indentation
Reply With Quote #1

Hi, can someone help me with these warning?
I have lot of these and I want to know why and how correct them.

Thanks.
__________________
I am 42% addicted to Counterstrike. What about you?

No more CS for me....
elpouletorange is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-17-2008 , 18:51   Re: warning 217: loose indentation
Reply With Quote #2

Make all of your indentation the same. If you use spaces, use the same spaces throughout the plugin. If you use tabs, use the same tabs throughout the plugin
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-17-2008 , 19:05   Re: warning 217: loose indentation
Reply With Quote #3

you can also use an auto-indenter ( AMXX-Studio, Notepad++, etc. has one)

most of the time it is because you do not use the same amount of spaces/tabs in a function

for example:
Code:
function(){
    new variable;
          variable += 24;
          if( g_variable )
  variable *= 3;
 return variable;
}
should be
Code:
function(){
   new variable;
   variable += 24;
   if( g_variable )
      variable *= 3;
   return variable;
}
(there are the same amount of spaces between lines)
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`
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 03-17-2008 , 23:37   Re: warning 217: loose indentation
Reply With Quote #4

And also, this warning is completely harmless, just kind of annoyance.
__________________
alien is offline
Send a message via ICQ to alien
elpouletorange
Senior Member
Join Date: Oct 2007
Old 03-18-2008 , 16:52   Re: warning 217: loose indentation
Reply With Quote #5

Ok thanks!
__________________
I am 42% addicted to Counterstrike. What about you?

No more CS for me....
elpouletorange is offline
enis.unniking
Junior Member
Join Date: Jul 2019
Location: KOSOVA
Old 07-22-2019 , 04:34   Re: warning 217: loose indentation
Reply With Quote #6

Look at this topic!
https://forums.alliedmods.net/showthread.php?t=317633
enis.unniking is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-22-2019 , 07:42   Re: warning 217: loose indentation
Reply With Quote #7

Quote:
Originally Posted by enis.unniking View Post
Look at the date when this thread was created and then look at your calendar.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-22-2019 , 10:23   Re: warning 217: loose indentation
Reply With Quote #8

lol for a few seconds I though fysiks did that
__________________








CrazY. 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 11:30.


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