mmomaker Posted May 4, 2009 Posted May 4, 2009 ok guys i need , as i cant figure this out when am in hospital or jail ect and i click on explore the main menu2 dissapear can anyone help to make it stay there and not dissapear please </style></head> <body> <center> <table width="80%" border="0" cellpadding="0" cellspacing="0" class="table"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; } $gn=""; global $staffpage; $bgcolor = ''; print <<<OUT <center>[img=images/banner.jpg] </center <table width="100%" border="0" cellpadding="0" cellspacing="0"></center> <tr> <td width="20%" valign="top"> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; print" "; global $ir,$c; print '</td><td width="2" class="linegrad" > </td><td width="60%" valign="top"> <center>'; if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } print " "; } function smenuarea() { include "smenu.php"; global $ir,$c; print '</td><td width="2" class="linegrad" > </td><td width="60%" valign="top"><center>'; } function endpage() { global $db; print <<<OUT </center> </td> </td><td width="20%" class="linegrad" > </td><td width="20%" valign="top"><center> OUT; include "mainmenu2.php"; print <<<OUT </td> </tr> </table></td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> </tr> </table> </td> </tr> </table> <center><td > Layout By [url="http://xg-network.co.cc"]Xg Network[/url]</center> </td> </body> </html> OUT; } } ?> Quote
Dayo Posted May 4, 2009 Posted May 4, 2009 Re: [mccodes]mainmenu 2 help open up mainmenu.php fnd somat like if ($ir['jail']) { then find the right after that (may be 3/4 lines down ' } else { ' then move this after the ' } else { ' <a href = "explore.php"> Explore </a> soz if it dont make sence/is wrong i am at work and dont have the mainmenu.php script on me Quote
Legaci Posted March 24, 2013 Posted March 24, 2013 it should be an echo missing or not closed under if(ir$....... again sorry if wrong but thats is what i would look for 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.