warning 217: loose indentation and -
brandypol - 24.08.2014
I was scripting my gamemode when I compilded and got those warnings :
warning 217: loose indentation
What can I do to correct those warning errors ?
Re: warning 217: loose indentation and -
IceCube! - 24.08.2014
Loose Indentation just means your code is messy... Example:
pawn Код:
Line
Line
Line
Line
Line
Line
Line
(if that comes out).
To fix it, highlight the unindented code and press TAB to go forward, or shift + TAB to go backwards.
If your lazy... #pragma tabsize 0
Re: warning 217: loose indentation and -
YanLanger - 24.08.2014
Show the code.
Re: warning 217: loose indentation and -
ikkentim - 24.08.2014
****** for "warning 217: loose indentation"
Help yourself.
Re: warning 217: loose indentation and -
Iloveimpulse - 25.08.2014
Use
PHP код:
#pragma tabsize 0
Re: warning 217: loose indentation and -
rymax99 - 25.08.2014
Quote:
Originally Posted by Iloveimpulse
Use
PHP код:
#pragma tabsize 0
|
No, don't do that! You should REALLY learn to indent, once you continue to code for a while, or once your mode develops into being larger, you're going to get to a point where indentation is ABSOLUTELY needed, and for a script of any size, it is! It's extremely difficult to read nested code without indentation, and it often leads to coding errors since you can't see what is contained by what. Indentation will come natural as you code.
Re: warning 217: loose indentation and -
SpikY_ - 25.08.2014
Re: warning 217: loose indentation and -
ThePhenix - 25.08.2014
Well, if you are actually too lazy to indent the code properly, I suggest using this:
http://codegenerators.pl/
Re: warning 217: loose indentation and -
rymax99 - 25.08.2014
Quote:
Originally Posted by ThePhenix
|
I don't see why you'd need something like that, it's just a matter of hitting tab when you're nesting something, really.
Re: warning 217: loose indentation and -
ThePhenix - 25.08.2014
Quote:
Originally Posted by rymax99
I don't see why you'd need something like that, it's just a matter of hitting tab when you're nesting something, really.
|
I clearly stated, if he's too
LAZY then he will use it, otherwise ok..