What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

WaitTimer what else?

seVen

New Member
Joined
Jan 31, 2010
Messages
589
Reaction score
20
Hey you guys i'm working on a plugin right now and need some help !

- Question: How do i define a longer ( lets say 1H) wait time in WaitTimer class?


Code:
private readonly WaitTimer _updateTimer = WaitTimer.OneHour;

^ Doesn't work
 
Since Styx.Helpers.WaitTimer doesn't provide a convenience value for Hour, you'll have to use the TimeSpan form of the constructor to get the value. It looks like this:

Code:
private readonly WaitTimer    _updateTimer = new WaitTimer(TimeSpan.FromHours(1.0));


cheers,
chinajade
 
Thanks man finally finished my first little plugin, check it out if your interessted *link*
 
Back
Top