warning 217: loose indentation
#1

Error
Код:
(1754) : warning 217: loose indentation
Code on line 1754
pawn Код:
for(new f = 0; f < 9; f++){TextDrawShowForPlayer(playerid,Spawntext[f]);}
Reply
#2

pawn Код:
for(new f = 0; f < 9; f++) TextDrawShowForPlayer(playerid,Spawntext[f]);
OR
pawn Код:
for(new f = 0; f < 9; f++)
{
  TextDrawShowForPlayer(playerid,Spawntext[f]);
}
Reply
#3

They all show with warnings I'm afraid.
Reply
#4

Код:
{
Code(); // It returns to Warning
}
Код:
{
Code(); // Loose Identation...
}
    return 1;
Код:
{
Code(); // No Warnings...
}
return 1;
Struc. of Code
pawn Код:
{ // Block
   /*1x Tab Space */
   DoSomething();
   {
       /* 2x Tabspace */
       DoSomething();
   } // End of Block 2
   DoSomething();
   /* 1x Tabspace */
}
DoSomething();
Loose Indentation means the structure of your Code
Reply
#5

Quote:
Originally Posted by Fugitive.
They all show with warnings I'm afraid.
Then this is the wrong line, because it compiles fine for me..
Maybe you something like this:
pawn Код:
stock function()
{
  for(new f = 0; f < 9; f++)
  {
    TextDrawShowForPlayer(playerid,Spawntext[f]);
  }
}
Note: Every tab/whitespace sperator needs to be 4 spaces
In the case above, the whitespace before the for loop is 3 spaces.

So it will give a warning:
Код:
(1754) : warning 217: loose indentation
EDIT: I just see someone posted before me.. lol
Reply
#6

Show me the whole part of your code, what comes before your error row, and after it
Reply
#7

At Top of your script:
pawn Код:
#pragma tabsize 0
This will ignore the warnings of indentation.
Reply
#8

Quote:
Originally Posted by Jeffry
Код:
At Top of your script:
[pawn]#pragma tabsize 0
This will ignore the warnings of indentation.
Lol i was going to write that but then i thought maybe it wouldnt work there and wrote the other thingy
Reply
#9

Thanks for the help guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)