Sethenor Posted October 9, 2008 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
radio_active Posted October 9, 2008 Posted October 9, 2008 Re: Attack problem Post your attack.php file. Quote
MrGi Posted October 9, 2008 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
Sethenor Posted October 9, 2008 Author 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
radio_active Posted October 9, 2008 Posted October 9, 2008 Re: Attack problem Well there you go =] Quote
savage Posted February 9, 2009 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
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.