rebel-rpg
08-30-2009, 10:34 PM
//Calculate EXP %
global $experc;
global $expopp;
$expn = $userstats3[level] * 65;
$experc = $userstats3[exp] / 100 * $expn;
$experc = round($experc,0);
$exopp = 100 - $experc;
E X P : <?php echo $experc ?>%
<img src="greenbar.png" width="<?php echo $experc ?>" height="10"><img src="redbar.png" width="<?php echo $exopp ?>" height="10">
http://i31.tinypic.com/20frp5e.jpg
for some reason it wont stop at 100% and i cant seem to fix this problem.
i could really use the help as i am not the best coder :) thank you, Nate
global $experc;
global $expopp;
$expn = $userstats3[level] * 65;
$experc = $userstats3[exp] / 100 * $expn;
$experc = round($experc,0);
$exopp = 100 - $experc;
E X P : <?php echo $experc ?>%
<img src="greenbar.png" width="<?php echo $experc ?>" height="10"><img src="redbar.png" width="<?php echo $exopp ?>" height="10">
http://i31.tinypic.com/20frp5e.jpg
for some reason it wont stop at 100% and i cant seem to fix this problem.
i could really use the help as i am not the best coder :) thank you, Nate