Loose identation [ Reput +]
#1

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.
Reply
#2

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.
Reply
#3

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?
Reply
#4

Код:
#pragma tabsize 0
Please Rep if i helped
Reply
#5

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

pawn Код:
#define tabsize 0
on top of script to get-rid of warning
Reply
#6

Quote:
Originally Posted by Shabi RoxX
Посмотреть сообщение
Just Add this

pawn Код:
#define tabsize 0
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
Reply
#7

Reply
#8

I use this
TidyPawn
By DarcoBlue
Reply
#9

Its better to learn to indent that relying on tools IMO. Seeing how very simple it is to learn.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)