Raised This Month: $ Target: $400
 0% 

Linux error with configs.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 07-19-2009 , 05:35   Linux error with configs.
Reply With Quote #1

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(szTitle48"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(dirszFileName32) ) {
    if ( 
szFileName[0] == '.' ) {
        continue;
    }
                    
    
replace(szFileName32".txt""");
    
display true;
    
menu_additem(mLoadszFileName"");
}
close_dir(dir);

menu_setprop(mLoadMPROP_EXITNAME"Back");

if ( 
display ) {
    
menu_display(idmLoad0);
    return 
PLUGIN_CONTINUE;
} else {
    
client_print(idprint_chat"%s There are no configs to load!"gszPrefix);

Thanks
-zacky
zacky is offline
Send a message via Skype™ to zacky
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode