HITMAN 17 Posted November 23, 2008 Share Posted November 23, 2008 Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/thedestr/public_html/header.php on line 445 This Is The Code I Added To Header if($ir['mission'] != 0) { $mq=$db->query("SELECT * FROM missions WHERE id=".$ir['mission']."",$c); if($db->num_rows($mq)== 0) { $db->query("UPDATE users SET mission=0 WHERE userid=".$userid."",$c); } $rm=$db->fetch_row($mq); if($rm['location_on']== 1) { if($rm['location_value'] != $ir['location']) { $db->query("UPDATE users SET mission=0 WHERE userid=".$userid."",$c); event_add($ir['userid'],"Your mission has been ended because you have moved city.",$c); } } if($rm['item_on']== 1 && $rm['attack_on']== 0) { $invq=$db->query("SELECT * FROM inventory WHERE inv_userid=".$userid." AND inv_itemid=".$rm['item_value']."",$c); if($db->num_row($invq)) { $exp=rand($ir['level'],$ir['level']*5); $db->query("UPDATE users SET mission=0, money=money+".$rm['money'].", crystals=crystals+".$rm['crystals'].", exp=exp+".$exp.", mission_counter=mission_counter+'1' WHERE userid=".$userid."",$c); $mission=($ir['mission']); $db->query("INSERT INTO missdone VALUES ($userid,$mission);",$c); $db->query("DELETE FROM inventory WHERE inv_userid=$userid AND inv_itemid=".$rm['item_value']."",$c); event_add($ir['userid'],"You have completed the mission and you was credited your reward.",$c); } } if($rm['item_on']== 0 && $rm['attack_on']== 0) { $db->query("UPDATE users SET mission=0 WHERE userid=".$userid."",$c); $owner=1; event_add($owner,"The mission $rm[name] mission ($rm[id]) is not set to a mission, Please do so.",$c); } if($rm['item_on']== 0 && $rm['attack_on']== 1) { $usa=$_SESSION['mission_attack']; $aa=$db->query("SELECT * FROM missions WHERE id=".$ir['mission']." AND attack_value=".$_SESSION['mission_attack']."",$c); if($db->num_rows($aa)) { $exp=rand($ir['level'],$ir['level']*10); $db->query("UPDATE users SET mission=0, money=money+".$rm['money'].", crystals=crystals+".$rm['crystals'].", exp=exp+".$exp.", mission_counter=mission_counter+'1' WHERE userid=".$userid."",$c); $mission=($ir['mission']); $db->query("INSERT INTO missdone VALUES ($userid,$mission);",$c); event_add($ir['userid'],"You have completed the mission and you was credited your reward.",$c); } } Line Of Error ?> Quote Link to comment Share on other sites More sharing options...
Mafia-Club Posted November 23, 2008 Share Posted November 23, 2008 Re: Missions Error Post the header.php maybe then we should be able to help :) Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted November 23, 2008 Share Posted November 23, 2008 Re: Missions Error Not sure the code thats messed up.....but that sounds like a ' or a " is missing. Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 23, 2008 Author Share Posted November 23, 2008 Re: Missions Error well im not posting my header as its a paid header by any chance can someone fix it Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted November 23, 2008 Share Posted November 23, 2008 Re: Missions Error obviously not.........you will hve to find that yourself...Look in your header.php and make sure all your echos or print are closed with a " if so then look to make sure all your querys have the ' in them like $ir['userid'] make sure they are not like $ir['userid] Quote Link to comment Share on other sites More sharing options...
Tonka Posted November 23, 2008 Share Posted November 23, 2008 Re: Missions Error your error is here $db->query("INSERT INTO missdone VALUES ($userid,$mission);",$c); replace with $db->query("INSERT INTO missdone VALUES ($userid,$mission)",$c); Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 24, 2008 Author Share Posted November 24, 2008 Re: Missions Error Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/thedestr/public_html/header.php on line 482 Quote Link to comment Share on other sites More sharing options...
Tezza` Posted November 24, 2008 Share Posted November 24, 2008 Re: Missions Error well whats line 482? 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.