Jump to content
MakeWebGames

Recommended Posts

Posted

I'm making a mod to put into the free mods section and I think its a good idea, whether or not i can get it working is another thing.

Can anyone see the parse error I'm getting here, on the print line?

{
$hwin=$_GET['bet']*1.5;
$hgain=($_GET['bet']*1.5)-($_GET['bet'])
print "You look over the crowds, and just about catch a glimpse of the number 1 on the side of the winning horse. 
You have won \$$hwin!";
$db->query("UPDATE users SET money=money+({$hgain}) where userid=$userid");
}

 

Thanks guys.

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