Jump to content
MakeWebGames

how do you remove something?


Nicholas

Recommended Posts

I did it by putting a if function around the information checking to see if the user is attacking, if they are don't show the info, if there not then show it.

Something along the lines of this:

if ($_SESSION['attacking']=1)
{
// put the code or text you want to show if the user is attacking
}
else
{
// Put the normal information in here
}

make sure the $_SESSION['attacking'] is unset or set back to 0 when the user is finished attacking or left the fight else there not going too see there information for a while.

Link to comment
Share on other sites

-.- this may get removed, but before you make a new game, you should shut your old one down, and learn the basics of coding, all you ever do is ask for help

is it against the law to ask for help? even professionals would need help some time in their life lol.

and im self taught developer... if people can help me, it be easier for me to learn due to i always read over my coding all the time and learn coding everyday more clearly.

Link to comment
Share on other sites

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