KDawg08 Posted March 10, 2008 Posted March 10, 2008 one last question... How do i change a script from Energy+25 to Energy+25%? For voting and/or another script i'm working on. Quote
Analog Posted March 10, 2008 Posted March 10, 2008 Re: +25% instead of +25 energy energy=energy + (energy * 0.25) Quote
KDawg08 Posted March 11, 2008 Author Posted March 11, 2008 Re: +25% instead of +25 energy oh i'm a dumbass... Thanks for that. Quote
KDawg08 Posted March 11, 2008 Author Posted March 11, 2008 Re: +25% instead of +25 energy wouldn't it be.. energy=energy+(maxenergy*0.25) ??? MAXENERGY being what it's giving 25% of? Quote
Analog Posted March 11, 2008 Posted March 11, 2008 Re: +25% instead of +25 energy wouldn't it be.. energy=energy+(maxenergy*0.25) ??? MAXENERGY being what it's giving 25% of? Yup, missed that in my response. Thanks for the correction Quote
KDawg08 Posted March 20, 2008 Author Posted March 20, 2008 Re: +25% instead of +25 energy even when i input this one it gives me 25% but if i have 75% it drops to 25%... Quote
Guest Anonymous Posted March 20, 2008 Posted March 20, 2008 Re: +25% instead of +25 energy Sheesh UPDATE `users` SET `energy` = LEAST(`maxenergy`, `energy` + ((`maxenergy` * 25.0) / 100.0)); Change the 25.0 to suit 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.