Jump to content
MakeWebGames

Recommended Posts

Posted

ive looked at this code for over an hour and i am not seeing anything wrong with this spent a good few hours building this mod :/

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/bravelan/public_html/clottery.php on line 28

 

}
if($_GET['a'] == buy)
{
if($ir['crystals'] < 25)
{
die("You don't have enough crystals");
}$tick = 1;
$tickq = $db->query("SELECT * FROM `clottery` WHERE `userid` = '$ir['userid']'");
if($db->num_rows($tickq) > $tick)
{
die('You can only purchase ' .$tick. ' tickets maximum');
}

     echo' 

                      You purchased a Crystal lottery ticket';

 

thanks to you that help!!!

Posted (edited)
}
if($_GET['a'] == buy)
{
if($ir['crystals'] < 25)
{
echo"You don't have enough crystals";
$h->endpage();
exit;
}
$tick = 1;
$tick1 = $db->query("SELECT * FROM clottery WHERE userid= $userid");
if($db->num_rows($tick1) > $tick)
{
echo"You can only purchase ' .$tick. ' tickets maximum";
$h->endpage();
exit;
}
}
else
{
echo"You purchase a crystal lottery ticket";
$h->endpage();
exit;
}

 

Not sure if it will work.

Edited by Dragon Blade
Posted
i fixed it i found the error ;)

care to share the fix as it may help other people doen the line if they get the same or a similar error

Posted

2 seconds .. what did you do? Stop and make a cup of tea midway? :P

Oh and BTW, you missed at least one other problem :D

- - - Updated - - -

2 seconds .. what did you do? Stop and make a cup of tea midway? :P

Oh and BTW, you missed at least one other problem :D

Posted
2 seconds .. what did you do? Stop and make a cup of tea midway? :P

Oh and BTW, you missed at least one other problem :D

- - - Updated - - -

2 seconds .. what did you do? Stop and make a cup of tea midway? :P

Oh and BTW, you missed at least one other problem :D

Never looked past that one, but will look now... also, IRC, mofo :P

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