Jump to content
MakeWebGames

Recommended Posts

Posted

Re: Hospital time

Pff, that's too much work

GO TO itemuse.php

find the line in medical items that says

UPDATE users SET hp=hp+{$fr['health']}

make it look like

UPDATE users SET hp=hp+{$fr['health']}, hospital=hospital-{$fr['health']}

Posted

Re: Hospital time

ok i did that it worked great. but i found out if thay are in for a while and just keep refreshing. it can take them in minus on hospital time. how can i stop this? i tried a if statement but just kept getting errors

Posted

Re: Hospital time

 

make it check if they have the item in there inventory right above the code you put in itemuse.php

I mean if thay keep refreshing on the item it dont tell them thay are not in hospital and takes there hospital time into minus. how can i make it so it says "you are not in hospital" if thay try to use the medical item when not in hospital?

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