[HELP] warning 217: loose indentation +REP
#1

Hello..

Im always getting these warnings


: warning 217: loose indentation

When i add pieces of mapping codes..


my pawno line with a error

Quote:

AddStaticVehicleEx(520,415.60000610,2447.39990234, 17.39999962,0.00000000,-1,-1,15); //Hydra

Regards
Oscii.
Reply
#2

Shouldt add like 3 spacebars into it like the others are been made
Reply
#3

Make sure the code is properly alligned.

Bad Way.
pawn Code:
public OnGameModeExit()
{
CreateObject(...);
    return 1;
}
Good Way.
pawn Code:
public OnGameModeExit()
{
    CreateObject(...);
    return 1;
}
Reply
#4

pawn Code:
AddStaticVehicleEx(520,415.60000610, 2447.39990234, 17.39999962,0.00000000,-1,-1,15);
try this
Reply
#5

Just add to the top of your script:
pawn Code:
#pragma tabsize 0
It will get rid of ALL loose indentations that you may experience in the future.
Reply
#6

Quote:
Originally Posted by Windows32
View Post
Just add to the top of your script:
pawn Code:
#pragma tabsize 0
It will get rid of ALL loose indentations that you may experience in the future.
Wow.

Thank you very much!,


And thank you to everyone else that helped me!


Rep'd
Reply
#7

+1Rep'd everyone that helped me.
Reply
#8

Good coding practices include proper indentation. It allows your code to be easier to read. This is why the usage of #pragma tabsize 0 isn't recommended.
Reply
#9

It isnt recomended?,

What could go wrong with

#pragma tabsize 0
Reply
#10

Quote:
Originally Posted by VincentDunn
View Post
Make sure the code is properly alligned.

Bad Way.
pawn Code:
public OnGameModeExit()
{
CreateObject(...);
    return 1;
}
Good Way.
pawn Code:
public OnGameModeExit()
{
    CreateObject(...);
    return 1;
}
thnx !:***
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)