loose Indentation
#1

What the hell does it mean, and how do i fix it? :P

Thanks!

<3

- Eric
Reply
#2



Use :
//command here
return 1;
}
Reply
#3

Quote:
Originally Posted by TheGarfield

Use :
//command here
return 1;
}
What? You donґt hear nothing about scripting, or?

Lose intention means when a bracket or a line is wrongly tabed.
You can resolve this by add #pragma tabsize 0 on top of your script or watch if your lines are correctly in teh same line.
Reply
#4

#pragma tabsize 1
Reply
#5

pawn Код:
// Good
public Blah( )
{
 new lol;
 lol = 1;
 return lol;
}
// Bad will give the warning
public Blah( )
{
 new lol;
  lol = 1;
 return lol;
}
simple as that
Reply
#6

Does the pragma thing effect the script at all? How it runs? Anything? :P
Reply
#7

Mah, dont use #pragma tapsize ....
Reply
#8

Code that will bring loose indentation warning:
pawn Код:
if(strcmp(cmdtext, "/salami", true) == 0)
 {
  SetPlayerPos(playerid, ....
return 1;
 }
Code that wont bring loose indentation warning:
[pawn]if(strcmp(cmdtext, "/salami", true) == 0)
{
SetPlayerPos(playerid, ....
return 1;
}[pawn]

Also

pawn Код:
#pragma tabsize 0
If you use this you are DOOMED!
( Na you wont be but in all seriousness dont use it )
Reply
#9

Filling in parameters wrongly also cause a loose identation (Example: Filling in a Float value in an integer parameter)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)