Jump to content
MakeWebGames

V2 Estate.php Fix?


Strats
 Share

Recommended Posts

I have noticed there's a little by in this file,

When you buy your house if you click back by accident or refresh the page it allows you to buy the house again.

Which of course takes more money away from the user.

Can someone fix this?

Or give me a little idea of how to do it?

 

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: V2 Estate.php Fix?

To be honest, I just briefly looked at the file, but I imagine the program may be fixed by:

Find

You're unable to view this code.

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

After it add

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: V2 Estate.php Fix?

I noticed sometimes on V2 that the queries was always to blame depending on how the rest of your files are laid out.

try changing

 

You're unable to view this code.

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

 

To

 

You're unable to view this code.

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

 

Im not saying this is the cause but its helped me in the past

Link to comment
Share on other sites

Re: V2 Estate.php Fix?

Try this

 

You're unable to view this code.

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

 

Ive added

echo '<script>alert("House Sold You went back to the Lowest priced House");</script>';

echo '<script>history.back(1);</script>';

exit;

}

and

echo '<script>alert("House Purchased Enjoy Your New Home");</script>';

echo '<script>history.back(1);</script>';

exit;

}

And fixed a willmax error

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.

 Share

×
×
  • Create New...