View Single Post
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`