[Hlep] Warnings
#4

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:
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;
}
Reply


Messages In This Thread
[Hlep] Warnings - by tony_fitto - 27.02.2009, 23:02
Re: [Hlep] Warnings - by JaYmE - 27.02.2009, 23:04
Re: [Hlep] Warnings - by tony_fitto - 28.02.2009, 00:56
Re: [Hlep] Warnings - by Pghpunkid - 28.02.2009, 04:03
Re: [Hlep] Warnings - by Kriztian - 28.02.2009, 04:17
Re: [Hlep] Warnings - by Pghpunkid - 28.02.2009, 04:19

Forum Jump:


Users browsing this thread: 1 Guest(s)