Way to list all registered players in a dialog list
#5

It's possible either by using FileManager or y_files plugin, according to y_files method:
pawn Код:
new i = 0, str[32], pathStr[64];
while(ffind("Users/*.ini", str, sizeof(str), i)) //Loop through every files inside "Users" folder having .ini extension.
{
    format(pathStr, sizeof(pathStr), "Users/%s.ini", str); //pathStr now contains the player file path.
}
Though, like others stated, I suggest converting your codes to SQL version. For converting the current data, you can use applications like INI->MySQL converter by gtakillerIV. (Link - https://sampforum.blast.hk/showthread.php?tid=510959)
Reply


Messages In This Thread
Way to list all registered players in a dialog list - by Darkwood17 - 29.03.2015, 22:28
Re: Way to list all registered players in a dialog list - by Ahmad45123 - 29.03.2015, 22:38
Re: Way to list all registered players in a dialog list - by Abagail - 29.03.2015, 23:04
Re: Way to list all registered players in a dialog list - by Crayder - 29.03.2015, 23:21
Re: Way to list all registered players in a dialog list - by Lordzy - 30.03.2015, 03:03

Forum Jump:


Users browsing this thread: 2 Guest(s)