I think we can have :) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I think we can have :) (
/showthread.php?tid=621397)
I think we can have :) -
Stop - 10.11.2016
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 ? )
Re: I think we can have :) -
MrViolence101 - 10.11.2016
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.
Re: I think we can have :) -
Alex MagaŃa - 10.11.2016
Example:
https://sampforum.blast.hk/showthread.php?tid=564654
Re: I think we can have :) -
NaS - 10.11.2016
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.
Re: I think we can have :) -
SickAttack - 10.11.2016
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.