BluroSoft Posted September 30, 2012 Posted September 30, 2012 (edited) 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); $enopp=100-$enperc; 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 September 30, 2012 by BluroSoft Quote
sniko Posted October 1, 2012 Posted October 1, 2012 Try: $enperc = $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $enopp=100-$enperc; 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>"; Quote
rulerofzu Posted October 1, 2012 Posted October 1, 2012 Its quite clear from the few posts that you have recently made that you have a lot to learn. I would suggest that you have a look at some of the sites listed here http://makewebgames.io/content.php/151-Helpful-Links Learn the basics. Really you shouldnt be asking for help on matters such as this. Quote
a_bertrand Posted October 1, 2012 Posted October 1, 2012 I shall add: this is the last time I leave one of your threads as "Please help". Next time put something useful in the subject as stated in our rules. 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.