01-24-2021, 03:04 PM
Hello all!
How to change default dcs and mcs time? For ex: mcs saturday 19:00 and dcs sunday 19:00
thanks
rondo157
|
dcs mcs time
|
|
01-24-2021, 03:04 PM
Hello all! How to change default dcs and mcs time? For ex: mcs saturday 19:00 and dcs sunday 19:00 thanks rondo157
01-24-2021, 03:48 PM
DratanCastle.cpp In void CDratanCastle::SetNextWarTime(int nextWarTime) Quote int next = 7 - curtm.tm_wday; //sunday if (next < 0) next += 7; ... Quote struct tm nexttm = curtm; nexttm.tm_hour = 19; //19:00 nexttm.tm_min = 0; nexttm.tm_sec = 0; nexttm.tm_mday += next; nexttm.tm_isdst = -1; time_t nexttime = mktime(&nexttm); -> DCS on Sunday at 19:00 WarCastle_Merac.cpp In void CMeracCastle::SetNextWarTime(int nextWarTime) Quote struct tm curtm = NOW(); // 다음 토요일을 구함 int next = 6 - curtm.tm_wday; //saturday if (next <= 0) next += 7; ... Quote struct tm nexttm = curtm; nexttm.tm_hour = 19; //19:00 -> MCS on Saturday at 19:00
01-24-2021, 03:49 PM
Yes i found it 3 mins ago thank you #closed
01-24-2021, 05:32 PM
Hi there.As your topic has been answered, and from this topic you can solve your problem or already have I am going to move this topic into our Solved section database.Thankyou,-LCKB Staff |
|
« Next Oldest | Next Newest »
|