Registered member?
#1

Hello guys!
I have seen in many server that if a new player registered, then it will show " Nick has registered ( Registered Member : %d)".Is that posibble? i am using ladmin and if anyone know that please tell me how.
Reply
#2

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.
Reply
#3

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
Reply
#4

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.
Reply
#5

i have the same problem anyone help please
Reply
#6

Anyone know? please help..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)