warning 217: loose indentation and
#1

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 ?
Reply
#2

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
Reply
#3

Show the code.
Reply
#4

****** for "warning 217: loose indentation"

Help yourself.
Reply
#5

Use
PHP код:
 #pragma tabsize 0 
Reply
#6

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.
Reply
#7

Код:
#pragma tabsize 0
Reply
#8

Well, if you are actually too lazy to indent the code properly, I suggest using this:

http://codegenerators.pl/
Reply
#9

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
Well, if you are actually too lazy to indent the code properly, I suggest using this:

http://codegenerators.pl/
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.
Reply
#10

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..
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)