Jump to content

having issues with a login program I made


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

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.