Pieces Posted June 20, 2009 Share Posted June 20, 2009 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 Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted June 21, 2009 Share Posted June 21, 2009 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 Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted June 21, 2009 Share Posted June 21, 2009 Re: Energy bar Haha, nice fast work there BlueDevil ;) (post deletion) To Dimension: I'll keep it short and sweet.. Shut up, grow up ;) Quote Link to comment Share on other sites More sharing options...
Dimension Posted June 21, 2009 Share Posted June 21, 2009 Re: Energy bar SORRY account was hacked Apologies again Quote Link to comment Share on other sites More sharing options...
Pieces Posted June 21, 2009 Author Share Posted June 21, 2009 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 :? Quote Link to comment Share on other sites More sharing options...
bocco Posted June 21, 2009 Share Posted June 21, 2009 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']} Quote Link to comment Share on other sites More sharing options...
Pieces Posted June 21, 2009 Author Share Posted June 21, 2009 Re: Energy bar Thank you Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted June 21, 2009 Share Posted June 21, 2009 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.