Posts: 2,629
Threads: 40
Joined: Mar 2008
Reputation:
0
Most of those servers are using MySQL, so it's easy to retrieve the amount of users with no hastle. Ladmin uses file systems, so it's pretty difficult to get the amount of files in the users folder unless you make a separate count in a separate file.
Posts: 6,129
Threads: 36
Joined: Jan 2009
You could use the
y_files plugin's ffind function.
pawn Code:
ffind(const pattern[], filename[], len, &idx);
An example of the code required to list the number of files in a directory could be:
pawn Code:
new iCount, i, szNameBuffer[MAX_PLAYER_NAME + 4];
while(ffind("Accounts/*", szNameBuffer, sizeof(szNameBuffer), i)) iCount++; // iCount would retain the number of files in your 'Accounts' directory
Posts: 1,942
Threads: 89
Joined: Nov 2010
Reputation:
0
I am using ladmin and when a player register it should show amount of users.but can you plz give me the full code cuz i dont know this.
Posts: 62
Threads: 16
Joined: Jun 2011
Reputation:
0
Anyone know? please help..