Jump to content
MakeWebGames

Energy bar


Pieces

Recommended Posts

Re: Energy bar

 

EDITED....

- Learn to spell

- Thats not a game

- Dont post if you havent got anything useful to say..

People like you should learn to grow up some...I've seen more maturity in dogs than I have in your last message

 

Pieces:

{$ir['energy']}/{$ir['maxenergy']} - That'll work buddy,

 

- Pudda

Link to comment
Share on other sites

Re: Energy bar

Sorry for being stupid but where do i put it? I tried it in header but just got errors :|

if ($ir['maxpower']==0) { $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); }

 

I replaced the end of that with what you gave me but no luck :?

Link to comment
Share on other sites

Re: Energy bar

well there is more to it then that

do you want it to display the max energy and current or just 100/100

if that is the case why not leave it at 100%

but if you want it to display the current and max energy do this

find this

<td>Energy: {$enperc}%

and replace {$enperc}%

with

{$ir['energy']} / {$ir['maxenergy']}

Link to comment
Share on other sites

Re: Energy bar

 

well there is more to it then that

do you want it to display the max energy and current or just 100/100

if that is the case why not leave it at 100%

but if you want it to display the current and max energy do this

find this

<td>Energy: {$enperc}%

and replace {$enperc}%

with

{$ir['energy']} / {$ir['maxenergy']}

 

Exactly what I said.. :-o

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.

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