Jump to content

Badja

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Badja's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm doing this for someone else, yes, but he knows less code than me, I did the generator code myself.
  2. Basically once the number has been generated: Crystals are a special item in the game, a reward, their function name is "#Crystal" At each hour, once the number has come up, say 46 (A game ID), that player would get 10 Crystals, because the number the number that had been generated told the next bit of code to give out the 10 crystals.
  3. I'm looking for a random number generator, that chooses a number every hour, and when it does it will be out of 100 (these are player ID's) once the number is chosen, I would like 10 Crystals (special payment) to be given to the number (ID). Is this possible and if so, please help. This is all I have (generator) function createRandomAGTNO() { do { $agt_no = mt_rand(1,100); $valid = true; if (preg_match('/(\d)\1\1/', $agt_no)) $valid = false; // Same digit three times consecutively elseif (preg_match('/(\d).*?\1.*?\1.*?\1/', $agt_no)) $valid = false; // Same digit four times in string } while ($valid === false); return $agt_no; } Please reply ASAP?
×
×
  • 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.