PDA

View Full Version : Looking for a programmer to do this:


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?

Curtis
02-25-2008, 05:18 AM
You are using standard cron or the database to call it?
You should look at the method used in mg or kitto as that is ghetto cron which I assume your using.

Basically you just want to update the pets hunger level on a certain time and not affect it until the next 15 minutes or so. Maybe by inserting a flag?

Kitty
02-25-2008, 08:30 AM
Thank you, I think I've got it now. ^_^ I don't need this thread anymore...

Leah
02-25-2008, 03:43 PM
Board is being locked at the request of the author.