Find multi Players Account [+++REP]
#8

It's hard to create such a system, especially because default samp functions don't even allow you to list all files in a directory.
So, basically, there is no way to open all account-files one-by-one and reading them until you find the IP in each file.

There is a plugin which could do this, but if you have thousands of players (and thousands accounts), opening/reading/closing them all is way too slow and will lag your server badly.

The best way would be to use MySQL.
One simple query could get all the info you need without even lagging the server as you can use threaded queries.

Reading files isn't threaded and your script has to wait execution of everything else until the file-reading has finished (in case of thousands of accounts, this may take several seconds, if not dozens of seconds, or even minutes, even with a fast harddrive).
Reply


Messages In This Thread
Find multi Players Account [+++REP] - by arlindi - 24.02.2015, 17:33
Re: Find multi Players Account [+++REP] - by FunnyBear - 24.02.2015, 17:35
Re: Find multi Players Account [+++REP] - by TheSnaKe - 24.02.2015, 17:37
Re: Find multi Players Account [+++REP] - by arlindi - 24.02.2015, 17:38
Re: Find multi Players Account [+++REP] - by Abagail - 24.02.2015, 17:42
Re: Find multi Players Account [+++REP] - by arlindi - 24.02.2015, 17:44
Re: Find multi Players Account [+++REP] - by arlindi - 24.02.2015, 18:36
Re: Find multi Players Account [+++REP] - by PowerPC603 - 24.02.2015, 19:35
Re: Find multi Players Account [+++REP] - by iAnonymous - 24.02.2015, 19:44
Re: Find multi Players Account [+++REP] - by Abagail - 24.02.2015, 21:37

Forum Jump:


Users browsing this thread: 2 Guest(s)