Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

TimerTest

By: LostProphet on Apr 27th, 2013  |  syntax: C#  |  size: 0.45 KB  |  views: 98  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. using GTA;
  2. using System;
  3.  
  4. namespace Timers
  5. {
  6.     class TimerTest : Script
  7.     {
  8.         public TimerTest()
  9.         {
  10.         }
  11.     }
  12.  
  13.     class TimerTestDerived : TimerTest
  14.     {
  15.         public TimerTestDerived()
  16.         {
  17.             Timer timer = new Timer(1000);
  18.             timer.Start();
  19.             timer.Tick += this.timer_Tick;
  20.         }
  21.  
  22.         private void timer_Tick(object sender, EventArgs e)
  23.         {
  24.         }
  25.     }
  26. }