Jump to content
MakeWebGames

PRoblem With Attack !!! Dont Have Enough Mana !!


Recommended Posts

Posted

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..

Posted

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

  • 3 months later...
Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...