13.02.2011, 19:45
Yes, this is what indentation is:
BAD indentation
GOOD indentation:
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
.
BAD indentation
pawn Код:
CMD:random( playerid, params[ ] )
{
SendClientMessage( playerid, 0xAAAAA, "Abcd" );
SendClientMessage(playerid, 0xAAAAAA, "Very bad indentation" );
return 1;
}
pawn Код:
CMD:random( playerid, params[ ] )
{
SendClientMessage( playerid, 0xAAAAA, "Abcd" );
SendClientMessage( playerid, 0xAAAAAA, "Very good indentation" );
return 1;
}
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
.

