jcrocker801 Posted March 12, 2009 Share Posted March 12, 2009 cron jobs how to send an event through a cron job . i cant get this to work..we have tried and had no luck it works and does show oon the stats but how can i get it to show as an event please help Quote Link to comment Share on other sites More sharing options...
Dave Posted March 12, 2009 Share Posted March 12, 2009 Re: need help with crons To get it working as an event you would need $ir to be declared in the cron to use the built in event add function... so thats a no no, You will have to do some funky mysql statement which i dont know. Quote Link to comment Share on other sites More sharing options...
POG1 Posted March 12, 2009 Share Posted March 12, 2009 Re: need help with crons you would need to do a big ass insert into the database. Quote Link to comment Share on other sites More sharing options...
Lithium Posted March 12, 2009 Share Posted March 12, 2009 Re: need help with crons you would need to do a big ass insert into the database. really? event_add(user,message,connection) this is a "big ass insert" Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted March 12, 2009 Share Posted March 12, 2009 Re: need help with crons Technically you would need a big ass insert, this is because, the cron's do not call in the global_func.php. Well on my file and to my knowledge it does not. But i have not messed with mccodes v2 file's for quite some time. Quote Link to comment Share on other sites More sharing options...
POG1 Posted March 13, 2009 Share Posted March 13, 2009 Re: need help with crons you would need to do a big ass insert into the database. really? event_add(user,message,connection) this is a "big ass insert" Event add will add it for 1 user.. Quote Link to comment Share on other sites More sharing options...
Lithium Posted March 13, 2009 Share Posted March 13, 2009 Re: need help with crons better this way? while (something) { event_add(user,message,connection) } Quote Link to comment Share on other sites More sharing options...
POG1 Posted March 13, 2009 Share Posted March 13, 2009 Re: need help with crons Think about this; 10,000 users in your database an event to everyone in the day cron for example Thats an additional 10k rows into the DB a day before any other events are added. It would probably be best to add a mod that notifies that the cron has been done instead of adding events. Quote Link to comment Share on other sites More sharing options...
Lithium Posted March 13, 2009 Share Posted March 13, 2009 Re: need help with crons Think about this; 10,000 users in your database an event to everyone in the day cron for example Thats an additional 10k rows into the DB a day before any other events are added. It would probably be best to add a mod that notifies that the cron has been done instead of adding events. Well... if you update every single user on your db's at p.e. a situation like this... well you might be right, despite that, those were simply guidelines to make things going. and a mod that notifies the cron has been done... would do exactly the same... Quote Link to comment Share on other sites More sharing options...
POG1 Posted March 13, 2009 Share Posted March 13, 2009 Re: need help with crons Just add into a separate table and you will only need to update 1 field ;) Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted March 17, 2009 Share Posted March 17, 2009 Re: need help with crons Just include_once("global_func.php"); and do like Lithium said. while (something) { event_add(user,message,connection) } And your done. If your sending event to eveyone on the game game in a cron. Then obviously you konw that your sending it to 10K peopel if you hav ethat many. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.