Jump to content
MakeWebGames

door shoot


iseeyou94056

Recommended Posts

make a file called doorshoot.php and in it put

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

and in explore.php put

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

then run this query

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: door shoot

here it is v1

make a file called doorshoot.php and in it put

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

and in explore.php put

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

then run this query

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: door shoot

 

good mod +1

thanks and

 

One problem is players can memorize the doors and well take advantage of that. Although it is a cool idea there should be a $door=rand(1,6) and make it random so door 1 wouldn't always get the same thing.

i would but i am not very good with random code if you want to make it random and post it that would be nice :p\
Link to comment
Share on other sites

Re: door shoot

Few problems looking over the code

heres the patch

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

also in cron_day.php somewhere add

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Note if you want to change the amount that you get per day change

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

into

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

where x= number you want per day. Ie- if you want one per day set it to doorshoot=1. I edited so it would work for that.I saw a few glitches while actually reading over the code and thats why I edited it. mostly just was changing Where into WHERE.

Link to comment
Share on other sites

Re: door shoot

Thanks except the only reason I fixed it was because I was curious how something like that would run. And then when looking over I caught Where should be WHERE and I also thought maybe the game owner wanted to change how many times a day they could do doorshoot so I edited it to set doorshoot=doorshoot-1 so they could have just 1 doorshot a day if they change it to 1 in the cron day portion. Also the karma/respect feature has been removed. I originally noticed a typo so thats why I edited before. The real credit should go to iseeyou94056 for taking the time to start it out. All I did was fine tune it.

Link to comment
Share on other sites

Re: door shoot

 

Thanks except the only reason I fixed it was because I was curious how something like that would run. And then when looking over I caught Where should be WHERE and I also thought maybe the game owner wanted to change how many times a day they could do doorshoot so I edited it to set doorshoot=doorshoot-1 so they could have just 1 doorshot a day if they change it to 1 in the cron day portion. Also the karma/respect feature has been removed. I originally noticed a typo so thats why I edited before. The real credit should go to iseeyou94056 for taking the time to start it out. All I did was fine tune it.

thanks :p

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