getdate(...day) bug
#4

Quote:
Originally Posted by MoroJr™
so there's no posibility to show me the Day?
I would probably create a file to read from like an ini file with dini and something like this:

DaysOfTheWeek.ini
1=Sunday
2=Monday
3=Tuesday
4=Wednesday
5=Thursday
6=Friday
7=Saturday

CurrentYear=2009
CurrentMonth=4
CurrentDay=30
CurrentDayOfWeek=5
---------------------------------------

Than all you have to do is compare dates in OnGameModeInit/OnFilterScriptInit
It would just take a little bit of thinking, not too hard to do. I think i'll make a script of this right now and release it :P

You could make it yourself or wait a bit and i'll release it



EDIT: There are a bunch of factors I didn't think about, and really don't want to bother with so. But that concept could kind of work. Either that or map out the days of the week according to the actual month day with a calender.

Unless someone else has an idea, it would probably take a long time and would be easier to get the day from a server if you have linux your could probably do that with Boyletts socket thing in plugins or hopefully they can add a function to read the day off the windows clock.
Reply


Messages In This Thread
getdate(...day) bug - by Danut - 30.04.2009, 19:58
Re: getdate(...day) bug - by Double-O-Seven - 30.04.2009, 20:10
Re: getdate(...day) bug - by Danut - 30.04.2009, 20:12
Re: getdate(...day) bug - by lavamike - 30.04.2009, 20:23
Re: getdate(...day) bug - by Weirdosport - 30.04.2009, 20:58

Forum Jump:


Users browsing this thread: 1 Guest(s)