Re: [mccode v2] Revamped RentaSpy
Fantastic, thankyou. I just have this now but im not worried about it :$
arning: sprintf() [function.sprintf]: Too few arguments in /home/cityoftu/public_html/rentaspy.php on line 268
QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Resource id #17' at line 1
Query was Resource id #17
line 268 is $moni,
Re: [V2]New Explore
Parse error: syntax error, unexpected T_IF in /home/cityoftu/public_html/explore2.php on line 13
and line 13 is
if($ir['hospital']) print("Some Features Are Not Shown As Your In Hopsital")
Re: [Mccodes V2]Emergency Surgery
<?php
include "globals.php";
if(!$ir['hospital'])
{
#160; die("You are not in the hospital!");
}
$cost=($ir ['level'])*300;
$fail=($ir ['level'])*2;
$rand=rand(1,3);
$cf=number_format($cost);
if($ir ['money'] < $cost)
{
#160; die("Sorry, you do not have enough money to pay for your surgery. You need \$$cf.");
}
if ($rand == '1')
{
#160; print "your surgery was a success you are out of the hospital, the surgery cost \$$cf.
#160; > [url='hospital.php']Back[/url]";
#160; $db->query("UPDATE users SET money=money-$cost WHERE userid=$userid");
#160; $db->query("UPDATE users SET hospital=0 WHERE userid=$userid");
}
else
{
#160; print "Your surgery was unsuccessful because the doctors mucked up your operation and used the wrong equipment and
#160; materials you are left in hospital for a longer amount of time, luckily, the doctors choose not to charge you for that
#160; failed operation. ";
#160; $db->query("UPDATE users SET hospital=hospital+$fail WHERE userid=$userid");
}
$h->endpage();
?>
Ive looked and altered so I dont get the parse error on any lines, but unfortunatly nothing happens when I try to use the Emergency Surgery.