Jump to content

having problems with a login program I created part 2


Iank1968

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.

Archived

This topic is now archived and is closed to further replies.

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