Script47 Posted July 22, 2013 Posted July 22, 2013 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. Quote
Guest Posted July 22, 2013 Posted July 22, 2013 That will set all users out of hospital. You need to specify a user id on the update query. Quote
Script47 Posted July 22, 2013 Author Posted July 22, 2013 That will set all users out of hospital. You need to specify a user id on the update query. Sorted, sorry about that. Quote
KyleMassacre Posted July 22, 2013 Posted July 22, 2013 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 Quote
jcvenom Posted July 22, 2013 Posted July 22, 2013 Try this *untested* You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
sniko Posted July 22, 2013 Posted July 22, 2013 Try this *untested* You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You use exit(); then endpage();, why? Quote
HauntedDawg Posted July 22, 2013 Posted July 22, 2013 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. :) Quote
jcvenom Posted July 22, 2013 Posted July 22, 2013 You use exit(); then endpage();, why? 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. Quote
Djkanna Posted July 22, 2013 Posted July 22, 2013 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. Quote
Script47 Posted July 22, 2013 Author Posted July 22, 2013 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.