Quote (Xabi @ Sat, Apr 18 2009, 04:28am)
i have the next problem with the exp bar:
if i put this: imagefilledrectangle($image, 125, 100, 275, 110, $white);
imagefilledrectangle($image, 125, 100, $brpixelX, 110, $red);
and after: $expbar_width = 150;
it doesnt show the progress bar for me, I have to put the width to 75 to seem real progress, someone knows why this happens?
in this function the 180 is the start pixle of the exp bar.
it would need changed to 125 in your code
function calcBrPixelX($input,$xpbar_width)
{
$temp1 = fmod($input,1000000);
$temp1 = ($temp1/1000000);
$temp1 = $temp1 * $xpbar_width;
$temp1 = $temp1 +
180;
return (int)$temp1;
}