Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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..

Posted

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.

Posted

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...

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...