PHP:
<?php
$woodcuttexp = $Exp['woodcuttingexp'];
$newwoodcuttinglvl = $Levels['woodcuttinglvl'] + 1;
$level = $newwoodcuttinglvl;
if (floor($woodcuttexp > 320)){
echo '<font color="yellow">You have reached woodcutting lvl ' . $level . ' </font><br />';
mysql_query("UPDATE `Levels` SET `woodcuttinglvl` = '$newwoodcuttinglvl' WHERE `userid` = '$user[id]' LIMIT 1")
or die(mysql_error());
} else {
echo '';
}
?>
Last edited: