Raised This Month: $ Target: $400
 0% 

Reading const from a file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-10-2013 , 06:07   Reading const from a file
Reply With Quote #1

Heya! I am wondering if it's possible to read a const from a file.

I have this code:
PHP Code:
new mapnames
<...>
new const 
mapnames[][] =
{
    
"awp_""cs_deagle""knf_""1hp_""aim_""fy_" //Maps in which vipmenu can't be used
}
<...>
get_mapnameszMap charsmaxszMap ) );
for( new 
sizeofmapnames ) ; i++ )
{
    if ( 
containiszMap mapnames] ) !=-)
    return;

I want to make a file where those all mapnames would be and I could add more without editing the plugin.

Last edited by Unkolix; 02-10-2013 at 08:55.
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