28.02.2009, 04:03
its 1 tab in per if statement.. for example..
public/stock statements have 0 tab spaces.
The code in those are 1 tab space.
If there is a if statement inside, the condition is 1 tab space, open bracket, then 2 tab spaces.. Example given:
public/stock statements have 0 tab spaces.
The code in those are 1 tab space.
If there is a if statement inside, the condition is 1 tab space, open bracket, then 2 tab spaces.. Example given:
pawn Код:
public OnGameModeInit {
if (somevariable == 1) {
if (someothervariable == 255) {
print("This is the way things should be indented.");
}
else {
print("This will prevent 'loose indentation' warnings.");
}
if (anothervariable == 60) {
if (thereisanifinaif == 1) {
tabagain=1;
}
}
}
return 1;
}

