SA-MP Forums Archive
[HELP] warning 217: loose indentation +REP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] warning 217: loose indentation +REP (/showthread.php?tid=340100)



[HELP] warning 217: loose indentation +REP - Oscii - 05.05.2012

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.


Re: [HELP] warning 217: loose indentation +REP - miley1 - 05.05.2012

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


Re: [HELP] warning 217: loose indentation +REP - ReneG - 05.05.2012

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;
}



Re: [HELP] warning 217: loose indentation +REP - ToiletDuck - 05.05.2012

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


Re: [HELP] warning 217: loose indentation +REP - Elysian` - 05.05.2012

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.


Re: [HELP] warning 217: loose indentation +REP - Oscii - 05.05.2012

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


Re: [HELP] warning 217: loose indentation +REP - Oscii - 05.05.2012

+1Rep'd everyone that helped me.


Re: [HELP] warning 217: loose indentation +REP - Disturn - 05.05.2012

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.


Re: [HELP] warning 217: loose indentation +REP - Oscii - 05.05.2012

It isnt recomended?,

What could go wrong with

#pragma tabsize 0


Respuesta: Re: [HELP] warning 217: loose indentation +REP - RafaelZam - 07.01.2013

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 !:***