Scott: Posted January 13, 2011 Posted January 13, 2011 I didn't know where else to put this so here goes, I am helping code my friends game and I don't know how to stop the users from exploring the game when they are in Hospital/Jail is there anyone that could help me out? Quote
Rasheed saeed Posted January 13, 2011 Posted January 13, 2011 if($ir['hospital']) { echo 'You are in hospital, you can\'t the Explore page.'; exit; } else if($ir['jail']) { echo 'You are in Jaill, you can\'t the Explore page.'; exit; } Quote
Danny696 Posted January 13, 2011 Posted January 13, 2011 if($ir['hospital'] || $ir['jail']) { echo'You cant be here, your in '. ($ir['jail']) ? 'jail.' : 'hospital.'; exit($h->endpage()); } Quote
Scott: Posted January 13, 2011 Author Posted January 13, 2011 Thanks I remember now, doesn't matter which one I use really but thanks to all that helped 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.