Ammount of players registered
#1

How can I get the ammount of players that registered, I mean like this:

Player121 has registered an account(Registered accounts: 145)

Do you get me, just give me an example if you can

Thank you, you'll be repped.
Reply
#2

What registration system u use?So i can help you.
Reply
#3

If you're using mySQL, run this query, store the result then use mysql_num_rows:

SELECT * FROM [name of table which contains accounts]

If you're not using mySQL, you'll have to make a variable that increases when a player is registered, that gets saved to a file.
Reply
#4

You can make a file that holds a value, at which when a player registers, the value is read from the file, increased by one, then saved again to the file.
Reply
#5

if the userdata gets saved into files (1 file per user in a directory), then its a piece of cake to count all files, using the Directory 2 plugin.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)