Kitty
02-25-2008, 03:17 AM
This is how I was attempting it. (say it would lower the level by one after a certain amount of time)
I inserted a time into the db, then included a file where it would compare the current time with the time stored. If the difference was greater than a certain amount of time, it would take 1 from the hunger level (starts at twenty)
the problems I'm having is that it only decreased it if the page was refreshed on the exact second.
I tried with a range, but it would decrease everytime it was refreshed as long as it was still within that timeframe.
now I also get an email every (how often I set it) saying permission denied
-------
how much would you charge to rewrite this, plus tell me how to insert cron jobs?
I inserted a time into the db, then included a file where it would compare the current time with the time stored. If the difference was greater than a certain amount of time, it would take 1 from the hunger level (starts at twenty)
the problems I'm having is that it only decreased it if the page was refreshed on the exact second.
I tried with a range, but it would decrease everytime it was refreshed as long as it was still within that timeframe.
now I also get an email every (how often I set it) saying permission denied
-------
how much would you charge to rewrite this, plus tell me how to insert cron jobs?