Jump to content

Recommended Posts

I made a login program that allows players to get a specific log in every 3 hours, but it when a player goes on an adventure it calculates the login every single time. Can someone help me with this code please.

 

function NewRegularInterval ($user) {
  //print "congrats 3 hour interval";
  ?>
  <fb success message="Thanks for playing, you have been given EO$ 25 for logging in." />
  <?

  global $users_table;
  Query ("UPDATE $users_table SET regular_intervals = regular_intervals + 1, 
                              last_logon_credit = NOW()
            WHERE uid=$user");
return GetRegularIntervals ($user);
}

function NewBonusInterval ($user, $num) {
  //print "congrats 3 hour interval";
  ?>

 

the log in is supose to be calculated every 3 hours not every adventure lol

 

Thanks in advance for your help

 

Sorry about not using the [ code ] before

of the code you provided, the only thing I see wrong is that there isn't a } before the ?> to close the NewBonusInterval function.

 

Other than that, can't help you much -- cause the code provided doesnt match the issue you've given.

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.