Raised This Month: $ Target: $400
 0% 

HEY im new


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-25-2006 , 10:50   Re: HEY im new
Reply With Quote #5

Loose indentation warnings simply means that you did not indent your code properly.

Here's an example of properly indented code using my techniques:
Code:
public MyFunction(id) {   // first level of indentation - two spaces or a single tab   new var = random_num(0, 3);   new v4r = random_num(0, 3);   if(var == 1)   {     // second level of indentation since we're going inside an {     client_print(id, print_chat, "The random number was 1");     if(v4r == 1)     {       // third level of indentation - second level       client_print(id, print_chat, "zomg you got a 1 again.. lucky ass");     }   } // now we start unindenting - first level } // until we get down to the final closing curly bracket
Hopefully that made sense. I'm tired.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode