Jump to content
MakeWebGames

Recommended Posts

Posted

Hey, could anyone help me in changing the energy bars to 100/100 rather than 100% I have tried but can't seem to figure it out, I expect it's fairly simple and I'm being stupid, but anyway yeah if you can help please do.

Thanks

Posted

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

Posted

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 :?

Posted

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']}

Posted

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

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