Jump to content
MakeWebGames

Recommended Posts

Posted (edited)

Does any one have any ideas on how i can code these up for the game use mccodes v2..

these are not functional atm how can i make them functional?

 


This is for energy:

$enperc=(int) ($ir['energy']/$ir['maxenergy']*100);
$enopp=100-$enperc;



                                       Progress: <div style="background: url(images/stat_bar_bg.png) no-repeat;width:110px;height:18px;">
                                       Red bar: <div style="background: url(images/stat_bar.png) no-repeat;width:40%;height:18px;"></div></div>
Edited by BluroSoft
Posted

Try:

 

$enperc = $enperc=(int) ($ir['energy']/$ir['maxenergy']*100);
$enopp=100-$enperc;
echo "Energy: <div style="background: url(images/stat_bar_bg.png) no-repeat;width:{$enperc}px;height:18px;">
                      <div style="background: url(images/stat_bar.png) no-repeat;width:{$enopp}px;height:18px;"></div></div>";

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...