Loose identation [ Reput +] - 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: Loose identation [ Reput +] (
/showthread.php?tid=344919)
Loose identation [ Reput +] -
SampLoverNo123 - 23.05.2012
Hello dear sa-mp members, is there anything like Loose identation fixer ( software ) or something? because I have lots of warnings for Loose identation, if you know how to fix it in easy manner, please post reply. I'll REP+ you for helping me.
Re: Loose identation [ Reput +] -
ReneG - 23.05.2012
Errrm, the tab key?
Bad Indentation
pawn Код:
function(a)
{
a++;
return 1;
}
Good Indentation
pawn Код:
function(a)
{
a++;
return 1;
}
If you are really too lazy for that, then try using
Tidy Pawn by DracoBlue.
Re: Loose identation [ Reput +] -
SampLoverNo123 - 23.05.2012
Quote:
Originally Posted by VincentDunn
Errrm, the tab key?
Bad Indentation
pawn Код:
function(a) { a++; return 1; }
Good Indentation
pawn Код:
function(a) { a++; return 1; }
If you are really too lazy for that, then try using Tidy Pawn by DracoBlue.
|
I really dont know about TAB key, tell me i have to select loos identation first then i have to press tab key?
Re: Loose identation [ Reput +] -
[D]ry[D]esert - 23.05.2012
Please Rep if i helped
Re: Loose identation [ Reput +] -
Shabi RoxX - 23.05.2012
Quote:
Originally Posted by SampLoverNo123
I really dont know about TAB key, tell me i have to select loos identation first then i have to press tab key?
|
Just Add this
on top of script to get-rid of warning
Re: Loose identation [ Reput +] -
iggy1 - 23.05.2012
Quote:
Originally Posted by Shabi RoxX
Just Add this
on top of script to get-rid of warning
|
Bad advice, it just hides the problem doesn't fix it and maybe hide other problems too.
http://en.wikipedia.org/wiki/Indent_style
Re: Loose identation [ Reput +] -
[ABK]Antonio - 23.05.2012
Re: Loose identation [ Reput +] -
Faisal_khan - 23.05.2012
I use this
TidyPawn
By DarcoBlue
Re: Loose identation [ Reput +] -
iggy1 - 23.05.2012
Its better to learn to indent that relying on tools IMO. Seeing how very simple it is to learn.
Re: Loose identation [ Reput +] -
MP2 - 23.05.2012
A useful tip:
If you select a load of text and press TAB it indents it all. If you press shift+TAB it removes a tab.