Pieces Posted June 20, 2009 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
Jordan Palmer Posted June 21, 2009 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
Magictallguy Posted June 21, 2009 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
Dimension Posted June 21, 2009 Posted June 21, 2009 Re: Energy bar SORRY account was hacked Apologies again Quote
Pieces Posted June 21, 2009 Author 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
bocco Posted June 21, 2009 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
Jordan Palmer Posted June 21, 2009 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
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.