Raised This Month: $ Target: $400
 0% 

dupes in read_dir


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 06-15-2004 , 18:02   dupes in read_dir
Reply With Quote #1

Code:
    while(read_dir("maps",numword,data,63,temp)) {         if((contain(data,".bsp") != -1) && (containi(data,".ztmp") == -1)) {             if(totalmaps >= MAX_MAPS){                 server_print("[AMXX] MAX_MAPS has been exceeded, not all maps are able to load for searching")                 return PLUGIN_HANDLED             }             copy(T_LMaps[totalmaps],31, data)             replace(T_LMaps[totalmaps],31,".bsp","")             totalmaps++         }         numword++     }

this is producing dupes in the array, usually like 10 of each map. One time I noticed the first map was duped 4 times and then after that the rest were 8 times. Really strange. I ONLY is doing this on linux systems as far as I know, have not seen it occur in windows.

Also does anyone have some code I could borrow/look at for sorting an array?
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
 



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 14:51.


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