[Problem] With this timer

06/29/2009 03:39 Pete1990#1
Ok im adding the Auto Afk thing in but the problem is this Error 1 The name 'AfkKickElapsed' does not exist in the current context.
Now the timer is at Character.cs becuse thats where the guide said to go

Quote:
AfkTimer.Interval = 600000;
AfkTimer.Elapsed += new ElapsedEventHandler(AfkKickElapsed);<Error there
AfkTimer.Start();
06/29/2009 03:47 _tao4229_#2
you have to define a method of afkkickelapsed, lol
06/29/2009 03:52 _Emme_#3
AfkTimer.Elapsed += new ElapsedEventHandler(AfkKickElapsed);<Error there

Remove that AfkTimer.Elapsed += new row
Write:

AfkTimer.Elapsed += new (now press Tab twice)
There you go, you're event is now created. Please reply if this worked so I know if I can close or not.

Regards,
Emme
06/29/2009 03:55 Pete1990#4
Sorry for topic had timer in wrong place
#Request Close
#Request Slap lol
06/29/2009 04:23 _Emme_#5
#closed