I have an Question,
I want to make a system that give's you every 20 minutes a new turn, even if you are not online. So if you login again you would have the turns from the time that you're not online. I'm using a MySQL database to store al the data. How can i do that?
Maybe a script that runs every 20 minutes...I don't Know
Greetings Ruud Harmsen
One way would be to take the time the user logged off and store that in the database. Then when the user logs on again you can work out how many turns they should have.
What if they close their browser before logging out?
Why do you wany to do this? / What are you trying to do?
Maybe you could store the date/time their last turn was created and then calculate from that when they login again.