I think we can have :)
#1

Guys Is there something like that ... how to see how much player register in server total .. can we cmd or something to see it (if its there something like this so i can get the FS, or totorial how to make it ? )
Reply
#2

IF you are using mysql, you can use a *count* query for the database, that will retrieve the number of records you have in the database.
Reply
#3

Example: https://sampforum.blast.hk/showthread.php?tid=564654
Reply
#4

How are you saving the data?
If you save them using DINI, or any other file-based system you need to have a plugin that can retrieve all file names from a directory/count them. For example kurta999's version of YSF (and other forks) or maybe this directory plugin.

If you use MySQL, MrViolence gave you the answer already.

If you use files and do not want to use a plugin just for this, check the amount of users currently registered and create a counter. The starting value is the current amount, increasing every time someone registers. But this is a very simple solution and does not consider deletion of accounts and similar. But it works too.
Reply
#5

You can use a value wich goes up every time a player registers (saving that in the database), or you can get the count with an SQL statement based on the number of rows in a table.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)