Jordan Palmer Posted April 9, 2010 Posted April 9, 2010 Well I saw Renkia topi about having this hopsital and then adding the feature to heal people, I liked the idea, I just thought it needed to be updated, And well I was bored so i thought what the hell, Here is everything I have done: It no longer selects everything from the db, It selects what it needs Gang tag has been removed, As I didn't think it's needed Secured - *I hope* Heal link only appears when there not in hospital/jail Shows how many users there are in hospital Formats everything It's free so yeah, Use it or don't I was bored:) I have added screen shots so you can preview too (: Hospital.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Hospital heal You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Nicholas Posted April 9, 2010 Posted April 9, 2010 ".abs(intval($r['userid']))." ".htmlentities($ir['username'])." cant remember you doing that in your mods lol. i normally do that to all my files lol. most people say there is no point in doing the ".abs(intval($r['userid']))." stuff in like link bits. _________________________________________________________________ but anyways nice remake of this mod, but also on the hospital page... why didnt you just remove the action slot when your in hospital? instead of making it say "No Actions Avaliable" or whatever lol. Quote
Jordan Palmer Posted April 9, 2010 Author Posted April 9, 2010 ".abs(intval($r['userid']))." ".htmlentities($ir['username'])." cant remember you doing that in your mods lol. i normally do that to all my files lol. most people say there is no point in doing the ".abs(intval($r['userid']))." stuff in like link bits. _________________________________________________________________ but anyways nice remake of this mod, but also on the hospital page... why didnt you just remove the action slot when your in hospital? instead of making it say "No Actions Avaliable" or whatever lol. I always do that in my mods. Go back and look. Oh well, we all have our own ways, People say don't use sprintf, MTG does. Live it with (: Thanks and because I didn't think off that, I don't think it has much affect really so yeah.. -.- Quote
Nicholas Posted April 9, 2010 Posted April 9, 2010 oh lol didnt know, tho it was a new thing that you have been doing lol... and i cant really code in sprintf yet, getting there tho... also i think it look better if it didnt say the "action" bit while your in hospital. but thats my own personal view lol. Quote
Jordan Palmer Posted April 9, 2010 Author Posted April 9, 2010 oh lol didnt know, tho it was a new thing that you have been doing lol... and i cant really code in sprintf yet, getting there tho... also i think it look better if it didnt say the "action" bit while your in hospital. but thats my own personal view lol. Then remove it, I'm not going to as I think it's fine there. :) Quote
hwkeye Posted May 31, 2010 Posted May 31, 2010 Hey, can someone help me with this error please.. Warning: include(/home/hwkeye/public_html/globals.php) [function.include]: failed to open stream: No such file or directory in /home/hwkeye/public_html/hospital.php on line 2 Warning: include() [function.include]: Failed opening '/home/hwkeye/public_html/globals.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hwkeye/public_html/hospital.php on line 2 Fatal error: Call to a member function num_rows() on a non-object in /home/hwkeye/public_html/hospital.php on line 3 Quote
Jordan Palmer Posted June 1, 2010 Author Posted June 1, 2010 What version are you using? If MCCodes Version 1 then you need to convert it over Quote
Djkanna Posted June 1, 2010 Posted June 1, 2010 The error clearly states that globals.php doesn't exist. Are you using MCCodes V2 if so what have you renamed globals.php too? Quote
Jordan Palmer Posted June 1, 2010 Author Posted June 1, 2010 I think he's using MCV1, I think anyway - Another topic I read earlier 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.