Nicholas Posted October 12, 2009 Share Posted October 12, 2009 hi when i attack on my game it shows the header information like energy, will, brave, name, money, so on.... does anyone know how to make it so it doesnt show that information when you attack? Quote Link to comment Share on other sites More sharing options...
Danny696 Posted October 13, 2009 Share Posted October 13, 2009 -.- 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 Quote Link to comment Share on other sites More sharing options...
Kasabian Posted October 13, 2009 Share Posted October 13, 2009 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. Quote Link to comment Share on other sites More sharing options...
Danny696 Posted October 13, 2009 Share Posted October 13, 2009 $menuhide=0; $atkpage=1; or just add that before the include "globals.php"; on attach.php Quote Link to comment Share on other sites More sharing options...
Nicholas Posted October 13, 2009 Author Share Posted October 13, 2009 $menuhide=0; $atkpage=1; or just add that before the include "globals.php"; on attach.php that wouldnt work, i tried it already. if i changed the 1 to 0, the shoutbox would show up and it be even worst lol. Quote Link to comment Share on other sites More sharing options...
Nicholas Posted October 13, 2009 Author Share Posted October 13, 2009 -.- 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. Quote Link to comment Share on other sites More sharing options...
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.