Alright well in the 5165 source I made a datetime start for guild war.
Here's the code.
Code:
public static void GuildWarTime()// On or Off
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour == 2 && DateTime.Now.Minute == 15)
{
StartWar();
}
}
Here's the StartWar void:
Code:
public static void StartWar()
{
Init();
World.SendMsgToAll("SYSTEM", "Guild War has begun!", 2011, 0);
War = true;
}
It doesn't work though.
Nothing happens when it hits that time.
Anyone see anything wrong?
The check is in a void, which means you have to check the check void (lol) all the time, which is not the way to do it. Put the datetime code in a timethread and it should work fine.
The check is in a void, which means you have to check the check void (lol) all the time, which is not the way to do it. Put the datetime code in a timethread and it should work fine.
datetime and count 09/14/2010 - CO2 Private Server - 2 Replies okay i was trying to count how long an action took.
but it counted how long it took to send the action, but not how long it took.
How can i make it count after the action is send.
And yea I did put the time after the action, but still doing it.
Something I can use to check if action is done?
Is for 5165 tanel.
[QUESTion] DateTime Help 07/23/2009 - CO2 Private Server - 6 Replies Ok im looking at this one datetime im trying to make one but i dont understand this hour part where it says ServerTime.Hour == 8 what time is the 8 lol
else if ((World.ServerTime.DayName == "Monday" || World.ServerTime.DayName == "Wednesday") && World.ServerTime.Hour == 8 && World.ServerTime.Minute == 50)
[HELP] Datetime error 06/23/2009 - CO2 Private Server - 0 Replies Ok im geting this error when i try to load 10 expballs per day here it is http://img188.imageshack.us/img188/8279/erroryfn.p ng