29.03.2015, 22:28
Is there any way to make a dialog list which shows every registered player (from scriptfiles/Users)?
I don't think there is anyway you can list all files in a folders... so this is impossible.
|
native dir:dir_open(directory[]); native dir_close(dir:handle); native dir_list(dir:handle, storage[], &type, length = sizeof(storage));
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.
}