Jump to content
MakeWebGames

Recommended Posts

Posted

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?

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...