Raised This Month: $ Target: $400
 0% 

How I Can Make a Mapsmenu in a ini file?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-30-2010 , 00:09   Re: How I Can Make a Mapsmenu in a ini file?
Reply With Quote #8

Ok,Thanks,I have made some files,but none read a file,I know how to make all (with const,loops,etc) but no how to read.....Thanks fysiks78 :E

EDIT : I don't find how because I don't know how to set the item in the menu,im ussing a loop

example
PHP Code:
#define MAPS 32
new const maps[MAPS][] = "mm-maps.ini" 

//Init
     //Command to open menu

//Function

public func(id) {

           new 
path[64]
           
get_configsdir(path,63)
           
format(path,63,"%s/%s",path,maps)

           new 
menu menu_create("ASd","123")
    
           for(new 
0;<= MAPS;i++)
           {
                     
q[?_?]p
           
}
      
            
menu_display(id,menu)
            return 
PLUGIN_HANDLED
}

/* etc */ 
If someone wants to make it for me,i will appreciate.

Last edited by #8 SickneSS; 05-30-2010 at 03:17.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
 



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 05:25.


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