Jump to content

schmosby

Members
  • Content Count

    8
  • Joined

  • Last visited


Reputation Activity

  1. Upvote
    schmosby reacted to meko in reset player variable daily   
    no need for SQL nor a timer: just store the date instead of a true/false boolean
    // check whether the last reward was given today or another day if (gettime(GETTIME_DAYOFYEAR) == #LAST_REWARD) { mes("you already got a reward today"); } else { mes("here's your reward"); ... // give reward #LAST_REWARD = gettime(GETTIME_DAYOFYEAR); // set it to today }  
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.