View Single Post
  #29 (permalink)  
Old 04-09-2008, 04:14 AM
Flying Fish Flying Fish is offline
Junior Member
 
Join Date: Sep 2007
Posts: 3
Flying Fish is on a distinguished road
How specific would you like it?

You could say..
Code:
if (Hour() == 5 && Minute() == 30)
{
 ...
}
or how about a 3 minute window?

Code:
if (Hour() == 5 && MathAbs(Minute() - 30 ) < 3)
{
 ...
}
You could also add Seconds() to the code, but I think that would be too restrictive since an EA only runs once per tick and you don't know when that tick will occur (during the slow times it may be awhile...)
Reply With Quote