View Single Post
  #31  
Old 11-05-2005, 05:46 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
actually I rememberd what I learned i college intro to computer science class ten years ago (oops dont want to give away my age)

The curly brackets { and } should be as the upper left and lower left corners of a box, a box in which you should have intented so that you could draw a literal box around a printout of each block of code.

HTML Code:
function onCreated()
  {
    //code goes here
    each indent I do for two spaces

      if (something==1)
        {
          //more code here
        }

  }

function onWhatever()
  {
    //slap Unixmad just becasue
  }
the white space above and below each code block or nested code block
can help you visualize the box in which the block of code belongs in.
that's how I was taught.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote