Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class 1 TestNPC : default_npc
- {
- parameter:
- //
- parameter:
- EventHandler CREATED(i0, i1)
- {
- // Above in the ()'s we told the compiler:
- // "I want to use registers i0 and i1."
- // Now we can use them below.
- myself.Say("I will now start shouting like a retard!");
- i0 = 0; // Initialize the i0 register to 0;
- // (You don't really need to but I am OCD. :)
- i1 = 50; // Initialize the i1 register to 50;
- for (i0 = 0; i0 < 9999; i0 = i0 + 1) // There is no ++ operator...
- {
- myself.Say("The number is:" + IntToStr(i1));
- i1 = i1 + 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement