Registered member? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Registered member? (
/showthread.php?tid=267789)
Registered member? -
Ironboy - 09.07.2011
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.
Re: Registered member? -
[HiC]TheKiller - 09.07.2011
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.
Re: Registered member? -
Calgon - 10.07.2011
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
Re: Registered member? -
Ironboy - 10.07.2011
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.
Re: Registered member? -
YoUnG_MoNeY - 10.07.2011
i have the same problem anyone help please
Re: Registered member? -
YoUnG_MoNeY - 10.07.2011
Anyone know? please help..