Advertisement
Guest User

Untitled

a guest
Jul 26th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.67 KB | None | 0 0
  1. class 1 TestNPC : default_npc
  2. {
  3. parameter:
  4.     //
  5.  
  6. parameter:
  7.     EventHandler CREATED(i0, i1)
  8.     {
  9.         // Above in the ()'s we told the compiler:
  10.         // "I want to use registers i0 and i1."
  11.         // Now we can use them below.
  12.  
  13.         myself.Say("I will now start shouting like a retard!");
  14.        
  15.         i0 = 0; // Initialize the i0 register to 0;
  16.         // (You don't really need to but I am OCD. :)
  17.  
  18.         i1 = 50; // Initialize the i1 register to 50;
  19.  
  20.         for (i0 = 0; i0 < 9999; i0 = i0 + 1) // There is no ++ operator...
  21.         {
  22.             myself.Say("The number is:" + IntToStr(i1));
  23.             i1 = i1 + 1;
  24.         }
  25.  
  26.     }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement