Jump to content
MakeWebGames

need help in donator.php


prototype

Recommended Posts

hi guys actually i m a newbie so i want to ask u guys in gamess like torn if we donate our energy goes upto to 150 and in 10 minutes 5 energy will cm bt in my mccodes game i dnt know how to do tht so i want help frm u guys

and help will be apreciated

Link to comment
Share on other sites

hi guys actually i m a newbie so i want to ask u guys in gamess like torn if we donate our energy goes upto to 150 and in 10 minutes 5 energy will cm bt in my mccodes game i dnt know how to do tht so i want help frm u guys

and help will be apreciated

in your header.php you'll probably wanna put something like this

$db->query("UPDATE users SET maxenergy=100 WHERE donatordays='0'");

$db->query("UPDATE users SET maxenergy=150 WHERE donatordays>='1'");

Then you'll wanna make a new cron to run every 5 min to update the user thats a donator

Link to comment
Share on other sites

If he's wanting a set energy bar 100/100 for non donators and 150/150 for donators then no you dont want to update the +(level*2) unless you are wanting more energy on the top of the 100 and 150. which i dont think thats what he wanting. I use the method that I provided didnt see chickas reply but her/his solution would work also .

Link to comment
Share on other sites

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...