Jump to content

Can someone help me !


Recommended Posts

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);

                                       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
Link to comment
Share on other sites



$enperc = $enperc=(int) ($ir['energy']/$ir['maxenergy']*100);
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>";
Link to comment
Share on other sites

Join the conversation

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

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...