Raised This Month: $ Target: $400
 0% 

[REQUEST]Reading from a multiple files


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 02-12-2013 , 16:35   Re: [REQUEST]Reading from a multiple files
Reply With Quote #10

Awww, Failed ... How can i be so stupid sometimes..

Allright here is new code

PHP Code:

#define max_files 3

// Here is file names...
new const d_files[max_files][] = { "addons/vipmenu.txt""addons/awp.txt""addons/andsoon.txt" }

// This is the variable, example system load vipmenu.txt and that map what server have is in the list then d_mapc[0] will be 1
// if in awp.txt have then d_mapc[1] will be 1
new d_mapc[max_files]

public 
plugin_init()
{
    new 
ab[32], line[64], e
    
get_mapname(b,29)
       
    for(
0max_filese++) {
    if(!
file_exists(d_files[e])) continue 

    for(
0!= -1a++) {
    
b[31] = read_filed_files[e], aline63b[30])
    if(!
b[31]) break
    if( !
line[0] || line[0] == ' ' || line[0] == '/' ) continue
    if(
equal(line,b)) { d_mapc[e] = 1; break }
}}} 
.Dare Devil. 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