
Jason-x
-
Posts
85 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Jason-x
-
-
not getting any error on the page, just not receiving the xp for successful attacks and crimes
this is the do crime php i got
<?php$macropage="docrime.php?c={$_GET['c']}";
include "globals.php";
if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); }
$_GET['c']=abs((int) $_GET['c']);
if(!$_GET['c'])
{
print "Invalid crime";
}
else
{
$q=mysql_query("SELECT * FROM crimes WHERE crimeID={$_GET['c']}",$c);
$r=mysql_fetch_array($q);
if($ir['brave'] < $r['crimeBRAVE'])
{
print "You do not have enough Brave to perform this crime.";
}
else
{
$ec="\$sucrate=".str_replace(array("LEVEL","CRIMEXP","EXP","WILL","IQ"), array($ir['level'], $ir['crimexp'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']).";";
eval($ec);
print $r['crimeITEXT'];
$ir['brave']-=$r['crimeBRAVE'];
mysql_query("UPDATE users SET brave={$ir['brave']} WHERE userid=$userid",$c);
if(rand(1,100) <= $sucrate)
{
print str_replace("{money}",$r['crimeSUCCESSMUNY'],$r['crimeSTEXT']);
$ir['money']+=$r['crimeSUCCESSMUNY'];
$ir['crystals']+=$r['crimeSUCCESSCRYS'];
$ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/8);
mysql_query("UPDATE users SET money={$ir['money']}, crystals={$ir['crystals']}, exp={$ir['exp']},crimexp=crimexp+{$r['crimeXP']} WHERE userid=$userid",$c);
if($r['crimeSUCCESSITEM'])
{
item_add($userid, $r['crimeSUCCESSITEM'], 1);
}
}
else
{
if(rand(1, 2) == 1)
{
print $r['crimeFTEXT'];
}
else
{
print $r['crimeJTEXT'];
$db->query("UPDATE `users` SET `jail` = '$r[crimeJAILTIME]', `jail_reason` = '$r[crimeJREASON]' WHERE `userid` = '$userid'");
}
}
print "<br /><a href='docrime.php?c={$_GET['c']}'>Try Again</a><br />
<a href='criminal.php'>Crimes</a>";
}
}
$h->endpage();
?>
-
i did leave on the attack since the attackleave gives you xp
but as for crimes i'm getting no xp atall
-
this is the xp i get for combat aswell
You beat Taz and gained 0% EXP!
You hide your weapons and drop Taz off outside the hospital entrance. Feeling satisfied, you walk home.
-
how do people gain xp to level up then :S
because committing crimes is doing nothing
-
Problem solved thanks
Cron hour (add event to gang members)
in Modification Support
Posted
when i run my cron hour to complete gang Oc, any help making it add the event is greatly appreciated
i get this
Fatal error: Call to undefined function event_add() in /home/user/public_html/cron_hour.php on line 50
(changes to 36 if crime passes)
cron hour code