Posts: 1,113
Threads: 127
Joined: Jul 2008
Reputation:
0
Hello, for multiple reason I want to keep track of payday. For example that every 2 paydays something would happen. Or that After exactly 1payday(1h) something would happen. The reason is i need this is to avoid using many timers
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
You could use cron jobs - of course if you have access to them
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
It's automated script called by server with some frequency. Anyway, I've got better idea - why don't you just use data storage system of your choice (ini files, sql database) to store current payday? (you can even track more info about specific payday, like how much money in total was spent)
Posts: 1,113
Threads: 127
Joined: Jul 2008
Reputation:
0
You mean like on every payday it would add +1 to my storage system?
Posts: 1,113
Threads: 127
Joined: Jul 2008
Reputation:
0
Ok. I want stuff to happen every 2 paydays. I think i should try dividing by 2,if it does nicely,stuff happens. How do i do that? Or is you have some other way in mind?
Posts: 1,113
Threads: 127
Joined: Jul 2008
Reputation:
0
A couple of questions:
Why static? not new?
if(1 == paydays % 2) What is this?