Warning 217: Loose indentation :S
#8

Yes, this is what indentation is:


BAD indentation
pawn Код:
CMD:random( playerid, params[ ] )
{
 SendClientMessage( playerid, 0xAAAAA, "Abcd" );
    SendClientMessage(playerid, 0xAAAAAA, "Very bad indentation" );
return 1;
}
GOOD indentation:
pawn Код:
CMD:random( playerid, params[ ] )
{
    SendClientMessage( playerid, 0xAAAAA, "Abcd" );
    SendClientMessage( playerid, 0xAAAAAA, "Very good indentation" );
    return 1;
}
You should now understand why you get that warning.
Since no one explained why this warning is appearing. If your code is not in the right order (not placed rightly) it will give you warnings.
#pragma tabsize 0 can fak the script, I recommend not using it.
Deufault tabsize of SA-MP is 4, and you should respect it!
It's always best to show it with examples, then people understand it .
Reply


Messages In This Thread
Warning 217: Loose indentation :S - by xemper - 13.02.2011, 16:43
Re: Warning 217: Loose indentation :S - by xRyder - 13.02.2011, 16:46
Re: Warning 217: Loose indentation :S - by Ash. - 13.02.2011, 16:46
Re: Warning 217: Loose indentation :S - by HyperZ - 13.02.2011, 16:49
Re: Warning 217: Loose indentation :S - by xemper - 13.02.2011, 16:56
Re: Warning 217: Loose indentation :S - by JaTochNietDan - 13.02.2011, 17:05
Re: Warning 217: Loose indentation :S - by HyperZ - 13.02.2011, 17:21
Re: Warning 217: Loose indentation :S - by Mean - 13.02.2011, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)