Sorry guys, been busy on the gametype.. Well, today we are gonna learn about switches.
1. the switch. switches can be used for arguments, niggers, and others and True or False statments.
1a. Syntax. Ok so switches use the keyword switch.
Code:
switch( hello )
and inside the opening and closing curly braces are cases.. cases are used to define very many things. Here is a case:
Code:
example( nigger ) //teach later
{
     switch( nigger )
     {
            case 0:
                self.variable = 0;
                break;
            case 1:
                self.variable = 1;
                break;
      }
}
so cases are usually numbers but can be names. If it is a name it is surrounded in quotation marks like this:
Code:
 case "A_B_G_I_S_A_B_L_A_C_K_G_U_Y":
All cases are followed by a colon it acts like a equal sign so whatever is inside gets ran. a case is ended by a break followed by a semi colon.
1b. Arguments. You can't really explain much but I can show..
Code:
self thread Example( 1 ) //registers as nigger so nigger is our switch so it will go to case 1 because its looking for case nigger but our argument is 1 so nigger = 1 so case 1. This can always be changed.
Example( nigger )
{ // nigger corresponds with the switch 
      switch( nigger )
      {
             case 0:
                 break;
             case 1:
                 break;
             case 2:
                 break;
             case 3:
                 break;
      }
}
That's all I don't really feel like teaching any further on this