Action after time passed / countdown reaching zero.
Posted: Sun Dec 20, 2009 4:37 pm
Greetings everyone, I'm fairly new in the web development industry and I need your help with a little problem of mine.
My creation uses data from MySQL, and is a game.
I wish to implement a system of which will add up x resources on a certain interval.
I'll explain it of how I understand it in terms of my script,
for example;
If a user has 0 resources to start, and given the users statistics should be collecting '520' of a resource (Titanium for example.) every hour. I've no idea where to start with this, it's rather important that the current resources variable is stored as a string/in the database.
Can anyone give me a heads up?
Kind Regards,
Lee.
My creation uses data from MySQL, and is a game.
I wish to implement a system of which will add up x resources on a certain interval.
I'll explain it of how I understand it in terms of my script,
for example;
If a user has 0 resources to start, and given the users statistics should be collecting '520' of a resource (Titanium for example.) every hour. I've no idea where to start with this, it's rather important that the current resources variable is stored as a string/in the database.
Can anyone give me a heads up?
Kind Regards,
Lee.