Jump to content
MakeWebGames

Recommended Posts

Posted

Quick new addition to all your hospitals in your games, this allows players to pay $10000 to be released immediately from hospital.

Empty echo tags, contains <br/>

 

  • Open "hospital.php"
  • Underneath

    You're unable to view this code.

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

     

    add

    You're unable to view this code.

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

     

     

  • Then find this

    You're unable to view this code.

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

     

    and add under that

    You're unable to view this code.

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

     

     

 

Then add a complete new page called hospitalPayOut.php and add the following code to it.

 

You're unable to view this code.

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

 
Posted

That will set all users out of hospital. You need to specify a user id on the update query.

Posted
You use exit(); then endpage();, why?

Instead of asking why, why not point out his flaw, and then correct it? I sure did ask why in other posts, but why as to understand why he is doing it like that.

 

You're unable to view this code.

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

 

:)

Posted
i think its supposed to be

You're unable to view this code.

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

Either way is fine, however it's just exit(); or exit;

You're unable to view this code.

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

You're unable to view this code.

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

Posted
I don't think their is any reason to add the global $ir. you really only need to add that if you are in a function so you can most likely remove that line

Oh, I thought I may need it so I added it. Thanks for telling me.

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