Nicholas Posted September 7, 2009 Posted September 7, 2009 hi, im wondering i just cant figure this out lol this is in the fivemin cron file... $query="UPDATE users SET energy=energy+(maxenergy/(12.5)) WHERE energy<maxenergy AND donatordays=0"; $query5="UPDATE users SET energy=energy+(maxenergy/(6)) WHERE energy<maxenergy AND donatordays>0"; maxenergy = 100 100 / 12.5 = 8... <-- but non-donators get 16.5% energy. 100 / 6 = 16... <-- but donators get 33% energy. i want it to be like this non-donators get 10% energy donators get 20% energy but i cant figure it out... can anyone help me out, and tell me how to do it, and also why it is giving like double the energy, and not the 8 and 16% like its surpose to?? if u know what i know? Quote
Nicholas Posted September 7, 2009 Author Posted September 7, 2009 Re: energy stuff help i think i figured out why its giving double the energy and etc, do u think the crons can run twice every 5 minutes? if so, does anyone know how to stop it running twice at all? 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.