Jump to content
MakeWebGames

Crons


Memnoch

Recommended Posts

I am setting up a new game site for some friends of mine. I am using MCCodes V2 and have followed their instructions down to the T, but for some reason the crons are not working properly. I have checked the syntax to make sure everything is in place but couldn't find anything.

Any thoughts what it could be?

John B.

Link to comment
Share on other sites

Re: Crons

im not to familiar with mc v2 however what cron are you trying to run. and are you using cpanel to set it up?

call the file manually in your browser. post if there is an y error and the markup in the file. I can debug it for you and the cron setup in cpanel should look a bit like this

php -f /home/user/public_html/path-to-file

or similar depending on your structure and server specs.

let me know and I can try to help you a bit.

TJ

Link to comment
Share on other sites

  • 2 weeks later...

Re: Crons

code=adadfweqwefwf

is something that is "passed" to the script

The script prolly checks the $_GET['code'] to see if it matches a predetermined code (this predetermined value would be set in the script itself) and is used to determine if the script should run or not.

passing a code in such a manner is used to prevent a player in your game from easily being able to run a cron themselves. so, make that code is matching up properly or you crons will most like work, but nothing will happen as the script will "die" if the code isn't matched properly.

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