Raised This Month: $ Target: $400
 0% 

[REQUEST]Reading from a multiple files


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

I've already asked how to read from a file, but I fail when I try to read from multiple files in the same plugin. I will comment in php code. I would appreciate if someone could do it for me. I will give more information if it's needed.
PHP Code:
new const mapnames[][] =
{
    
"awp_""cs_deagle""knf_""1hp_""aim_""fy_" //Maps in which vipmenu can't be used
}
new const 
awpmapnames[][] =
{
    
"2x2""3x3""4x4""cs_max""aim"  //Maps in which awp choise won't show up
}
<...>
get_mapnameszMap charsmaxszMap ) );
for( new 
sizeofmapnames ) ; i++ )
{
    if ( 
containiszMap mapnames] ) !=-//Checks if map is the one mentioned in const mapnames
    
{
        
client_print(idprint_center"VIP meniu sitame zemelapyje neveikia!"//Sends a message that VIP can't use VIP menu on that map
    
}
}
<...>
get_mapnameszMap charsmaxszMap ) );
for( new 
sizeofmapnames ) ; i++ )
{
    if ( 
containiszMap mapnames] ) !=-//Checks if map is the one mentioned in const mapnames
    
return;
}
<...>
get_mapnameszMap charsmaxszMap ) );
for( new 
sizeofmapnames ) ; i++ )
{
    if ( 
containiszMap mapnames] ) !=-//Checks if map is the one mentioned in const mapnames
    
{
        
client_print(idprint_center"VIP meniu sitame zemelapyje neveikia!"//Sends a message that VIP can't use VIP menu on that map
    
}
    if ( 
containiszMap mapnames] ) !=-//Checks if map is the one mentioned in const mapnames
    
return; //Stop VIP from getting the VIP menu
}
<...>
for( new 
sizeofawpmapnames ) ; i++ )
{
    if ( 
containi(szMap awpmapnames]) !=-)
    {
        
bAwpMap true
        
break
    }


Last edited by Unkolix; 02-12-2013 at 13:53.
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 21:36.


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