Hi, i have a plugin, which you can create configs with, and then open a menu to load them, where a list of all configs come.
All works fine, except on linux computer.
On linux computers it just skips the first config.
Heres code:
PHP Code:
new szTitle[49];
format(szTitle, 48, "Load Menu - Current: %s", gCurConfig);
new mLoad = menu_create(szTitle, "handleLoad", 0);
new szFileName[33], bool:display;
new dir = open_dir(gDir, "", 0);
while ( next_file(dir, szFileName, 32) ) {
if ( szFileName[0] == '.' ) {
continue;
}
replace(szFileName, 32, ".txt", "");
display = true;
menu_additem(mLoad, szFileName, "");
}
close_dir(dir);
menu_setprop(mLoad, MPROP_EXITNAME, "Back");
if ( display ) {
menu_display(id, mLoad, 0);
return PLUGIN_CONTINUE;
} else {
client_print(id, print_chat, "%s There are no configs to load!", gszPrefix);
}
Thanks
-zacky