Suggestion about auto-start DisCity etc

12/08/2008 20:13 _Emme_#1
Oi oi mates. Ive seen no source out there with working auto dis city and those. Like it starts automaticlly. Ive though about this , note : this has not been tested:


Run a timer of a interval of 59 seconds. When the interval has gone, it writes a line in console with the current datetime, can look like this :

Quote:
if (MainTimer_Elapsed)
{
Console.WriteLine(DateTime.Now);
string Time = Console.ReadLine();
if (Time == "2008-xx-xx xx:xx:xx)
{
General.StartDisCity();
}
}
That way, it checks if the time is what it should be , and if it is, it does an funcion. So tell me people,would this work?

Peace
12/09/2008 06:37 sherwin9#2
You have to renew the date everytime.. so it's a bit unhandy, but it works for me :P
12/09/2008 10:50 alexbigfoot#3
just do it using a datetime?