Jump to content
MakeWebGames

High-Low game, need a lil help please.


pavalache

Recommended Posts

I have the high-low mod from this topic:

http://criminalexistence.com/ceforums/index.php?topic=15283.0

 

After i bet i get this error:

Fatal error: Call to a member function mysql_real_escape_string() on a non-object in /home/gamedb/public_html/highlow.php on line 71

 

line 71:

$amount=$db->mysql_real_escape_string($_POST['amount']);

 

Whats wrong? tried both mysql_real_escape_string and real_escape_string and im out of ideas..pls help a noob, thx!

Link to comment
Share on other sites

Re: High-Low game, need a lil help please.

Thanks Joel, that fixed the problem. +1

Now i get

Fatal error: Call to a member function query() on a non-object in /home/gamedb/public_html/highlow.php on line 116

 

116: $db->query("UPDATE users SET money=$lose WHERE userid=$userid", $c);

care to help again?:)

Link to comment
Share on other sites

Re: High-Low game, need a lil help please.

If you're using v1, change it to:

 

mysql_query("UPDATE users SET money=$lose WHERE userid=$userid", $c);

 

if you're using v1, change to:

 

global $db;
$db->query("UPDATE users SET money=$lose WHERE userid=$userid", $c);
Link to comment
Share on other sites

Re: High-Low game, need a lil help please.

if you hide the card the dealer shows... there's a 50/50 chance.

if you limit the bets even more you've got yourself with a finger killer.

everybody will click the bet key all they long till their fingers hurt without winning much and ruining the economy...thats what i think:P

Link to comment
Share on other sites

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