Raised This Month: $ Target: $400
 0% 

[REQUEST]Reading from a multiple files


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-12-2013 , 13:53   Re: [REQUEST]Reading from a multiple files
Reply With Quote #3

But I don't understand how...
PHP Code:
#define FILENAME "mapnames.ini"  
<...>
new 
g_szMapNames[64][32];
<...>
public 
CmdRead(id)
{
    new 
szMap[32], szString[32], szString2[32];
    
get_mapname(szMapcharsmax(szMap));
    
    new 
0;
    while( !(
equal(g_szMapNames[i], "")) )
    {
        
formatex(szStringcharsmax(szString), "%s"g_szMapNames[i]);
        
formatex(szString2charsmax(szString2), "%s"szMap);
        
        
replace(szStringcharsmax(szString), "^n""");

        if( 
containi(szString2szString) > -)
        {
            
// The current map does contain something from "FILENAME".
            
            
return;
        } 
        
        
i++;
    }
    
    
// The current map does not contain anything from "FILENAME".


Last edited by Unkolix; 02-12-2013 at 14:03.
Unkolix is offline
 



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 20:30.


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