Jump to content
MakeWebGames

Recommended Posts

Posted

I am goin to be releasing an opern beta of my game and i was just wondering is there like any sort of code i could add to the registration that like counts the sign ups and dsiplays it and f it reach like 20 says like sorry max betta tester sign up?

 

Thanks in advance

Kevj2 :) :) :): :mrgreen:

Posted

Re: mccodes v2 help

 

I am goin to be releasing an opern beta of my game and i was just wondering is there like any sort of code i could add to the registration that like counts the sign ups and dsiplays it and f it reach like 20 says like sorry max betta tester sign up?

 

Thanks in advance

Kevj2 :) :) :): :mrgreen:

 

$rows = $db->fetch_single($db->query("SELECT COUNT(userid) FROM users"));
if($rows >= 20)
{
echo "Registration is closed until the game is brought out of beta";
exit;
}
Posted

Re: mccodes v2 help

Does thast mean on the page you could put echo "There are $row Register ";

and that woukd say how many have regiasterd already ?

Posted

Re: mccodes v2 help

 

Does thast mean on the page you could put echo "There are $row Register ";

and that woukd say how many have regiasterd already ?

echo sprintf("There %s %s player%s registered", ($rows == 1) ? 'is' : 'are', number_format($rows), ($rows == 1) ? '' : 's');

 

Output:

There are 0 players registered

There is 1 player registered

There are 2 players registered

There are 3 players registered

etc..

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.   Paste as plain text instead

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