View Single Post
  #30 (permalink)  
Old 04-09-2008, 10:41 AM
matrixebiz's Avatar
matrixebiz matrixebiz is offline
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
Quote:
Originally Posted by Flying Fish View Post
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...)
What is this actually doing? I don't understand what this code is doing.
Thanks you
Reply With Quote