Sethenor Posted October 9, 2008 Share Posted October 9, 2008 Hello i have a problem with v2 attack alot of people are getting "bad bad bad girl" i know its something to do with the sessions but have no clue on how to fix it, can anyone help me please Quote Link to comment Share on other sites More sharing options...
radio_active Posted October 9, 2008 Share Posted October 9, 2008 Re: Attack problem Post your attack.php file. Quote Link to comment Share on other sites More sharing options...
MrGi Posted October 9, 2008 Share Posted October 9, 2008 Re: Attack problem I had the same problem. I fixed it with a simple () and a few Session Modfications. Here ya go youdata=$ir; $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $odata=$db->fetch_row($q); $myabbr=($ir['gender']=="Male") ? "his" : "her"; $oabbr=($ir['gender']=="Male") ? "his" : "her"; if($ir['attacking'] && $ir['attacking'] != $_GET['ID']) { print "Bad, bad, bad girl. [url='index.php']Back[/url]"; $_SESSION['attacklost']=0; $h->endpage(); exit; } Hope this helps Quote Link to comment Share on other sites More sharing options...
Sethenor Posted October 9, 2008 Author Share Posted October 9, 2008 Re: Attack problem I had the same problem. I fixed it with a simple () and a few Session Modfications. Here ya go youdata=$ir; $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $odata=$db->fetch_row($q); $myabbr=($ir['gender']=="Male") ? "his" : "her"; $oabbr=($ir['gender']=="Male") ? "his" : "her"; if($ir['attacking'] && $ir['attacking'] != $_GET['ID']) { print "Bad, bad, bad girl. [url='index.php']Back[/url]"; $_SESSION['attacklost']=0; $h->endpage(); exit; } Hope this helps Ahh lovely cheers man i owe you ;) Quote Link to comment Share on other sites More sharing options...
radio_active Posted October 9, 2008 Share Posted October 9, 2008 Re: Attack problem Well there you go =] Quote Link to comment Share on other sites More sharing options...
savage Posted February 9, 2009 Share Posted February 9, 2009 Re: Attack problem $youdata=$ir; $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $odata=$db->fetch_row($q); $myabbr=($ir['gender']=="Male") ? "his" : "her"; $oabbr=($ir['gender']=="Male") ? "his" : "her"; if($ir['attacking'] && $ir['attacking'] != $_GET['ID']) { print "Bad, bad, bad girl. [url='index.php']Back[/url]"; $_SESSION['attacklost']=0; $h->endpage(); exit; } you left out the $ in youdata on that first line 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.