Jump to content
MakeWebGames

Recommended Posts

Posted

Re: Mccodes Lite Userstats IQ Bug

Change...

 

elseif ($search =="14") 
{
print "You see a pretty rainbow.  You spot a leprechaun.

You take him hostage and ransom some gold from his leprechaun pals.


They bring you the money. You feel a little smarter.";
mysql_query("UPDATE users SET IQ=IQ+$IQ,money=money+$money,money=money+$money2,energy=energy-$eng WHERE userid=$userid");
mysql_query("UPDATE userstats SET IQ=IQ+$IQ WHERE userid=$userid");
}

 

To

 

elseif ($search =="14") 
{
print "You see a pretty rainbow.  You spot a leprechaun.

You take him hostage and ransom some gold from his leprechaun pals.


They bring you the money. You feel a little smarter.";
mysql_query("UPDATE users SET money=money+$money,money=money+$money2,energy=energy-$eng WHERE userid=$userid");
mysql_query("UPDATE userstats SET IQ=IQ+$IQ WHERE userid=$userid");
}
Posted

Re: Mccodes Lite Userstats IQ Bug

Hahaha!

Good eye!

I feel silly now. But no big deal. It's usually something simple that rattles the brain like that.

Thanks for the help guys. And special thanks for the tips and tricks to clean up my coding.

Much appreciation.

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