sady92 Posted May 15, 2011 Share Posted May 15, 2011 Hello, I am HAving this problem wehn i attack someone !! "You do not have enough Mana to attack" In fac i have 100 mana in my user and when i try it saying that.. And what is the Mana Function ? Thankyou.. Quote Link to comment Share on other sites More sharing options...
Dominion Posted May 15, 2011 Share Posted May 15, 2011 I don't remember ever seeing “mana” in Mccodes. Did you change the name? What does it do? Quote Link to comment Share on other sites More sharing options...
sady92 Posted May 15, 2011 Author Share Posted May 15, 2011 I will post the Code.. Wait.. if($_GET['Magic'] && ctype_digit($_GET['ID'])) { $Select = mysql_fetch_assoc(mysql_query("SELECT m.`ID`, m.`Mana`, u.`uMana` FROM `Spells` m INNER JOIN `users` u ON (u.`userid` = ".$userid.") WHERE (m.`ID` = ".$_GET['Magic'].")")); if($youdata['uMana'] >= $Select['Mana']) { $Append = ',`uMana` = `uMana` - '.$Select['Mana'].''; } } else { $Append = ''; echo 'You do not have enough Mana to attack'; exit($h->endpage()); } This is the Code... The problem is that whenever i attack someone even lvl 1.. it say this :S and donw allow me to attack.. :S Quote Link to comment Share on other sites More sharing options...
josh-j-c Posted August 28, 2011 Share Posted August 28, 2011 I will post the Code.. Wait.. if($_GET['Magic'] && ctype_digit($_GET['ID'])) { $Select = mysql_fetch_assoc(mysql_query("SELECT m.`ID`, m.`Mana`, u.`uMana` FROM `Spells` m INNER JOIN `users` u ON (u.`userid` = ".$userid.") WHERE (m.`ID` = ".$_GET['Magic'].")")); if($youdata['uMana'] >= $Select['Mana']) { $Append = ',`uMana` = `uMana` - '.$Select['Mana'].''; } } else { $Append = ''; echo 'You do not have enough Mana to attack'; exit($h->endpage()); } This is the Code... The problem is that whenever i attack someone even lvl 1.. it say this :S and donw allow me to attack.. :S This isnt the original mc codes, its been edited and if you havent edited yourself you must have got it off the net due to the fact you would have knew youd have made changes to the database and its feilds. 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.