Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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

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

Posted

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.

Posted
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. :)

  • 1 month later...
Posted

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

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