Quote (cheeseballl @ Sat, May 9 2009, 07:20pm)
Oh.
Ok, so now when I upload it it says there's a big error ...
I currently have
Code
$percent = calcPerToMQ($level);
And
Code
/***
* calculate the exp bar width.
***/
function calcBrPixelX($xpbar_width,$level)
{
$temp1 = ($xpbar_width/71);
$temp1 = ($temp1*$level);
$temp1 = $temp1 + xxx;
return (int)$temp1;
}
/***
* Calculate the percentage to Mq
***/
function calcPerToMQ($level)
{
$temp1 = ($level/71);
$temp1 = $temp1 * 100;
return (int)$temp1;
}
$temp1 = $temp1 + xxx;
you need to put some numbers there instead of the xxx
I just put them there since I dont know where your bar gonna start
so put there the x-value of the bar beginning