paul41598
12-21-2006, 07:20 PM
Hey guys, I could use a little guidance with theory here...
I'm currently working on a hack that basically is a standalone CRON job that will run every (x) hours. Basically what it will do is, look for any users who have more than (x) number of scores. When it finds those users, it basically deducts points from their profile and sends a PM to them.
Ok so thats the basics of it for now. Now the part that I'm stuck at.
The problem I just thought of, is the fact that this cron job will run every hour or whatever and keep finding the same users who STILL have more than (x) number of scores and keep sending them PM's.
How do I write some code, options, or whatever to get around this? What is your advice on handling it?
I'm currently working on a hack that basically is a standalone CRON job that will run every (x) hours. Basically what it will do is, look for any users who have more than (x) number of scores. When it finds those users, it basically deducts points from their profile and sends a PM to them.
Ok so thats the basics of it for now. Now the part that I'm stuck at.
The problem I just thought of, is the fact that this cron job will run every hour or whatever and keep finding the same users who STILL have more than (x) number of scores and keep sending them PM's.
How do I write some code, options, or whatever to get around this? What is your advice on handling it?