Jump to content
MakeWebGames

need help with crons


jcrocker801

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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