Raised This Month: $ Target: $400
 0% 

How I Can Make a Mapsmenu in a ini file?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-29-2010 , 17:40   How I Can Make a Mapsmenu in a ini file?
Reply With Quote #1

I Don't know how
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
ÜnLoCo
Member
Join Date: Dec 2009
Location: 35.77N, 10.82E
Old 05-29-2010 , 17:55   Re: How I Can Make a Mapsmenu in a ini file?
Reply With Quote #2

what d'ya wanna do ! what is the mapsmenu for ?
__________________
ÜnLoCo is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-29-2010 , 17:58   Re: How I Can Make a Mapsmenu in a ini file?
Reply With Quote #3

MixMaker
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-29-2010 , 22:41   Re: How I Can Make a Mapsmenu in a ini file?
Reply With Quote #4

If this is supposed to be in scripting help then start making the plugin first. If this should be in the requests section then you need to explain exactly what you want. Be SPECIFIC!!!

If it is the latter, then this thread needs moved.
__________________
fysiks is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-29-2010 , 22:51   Re: How I Can Make a Mapsmenu in a ini file?
Reply With Quote #5

I just want to know the methods, no to do it for me

EDIT: I Know how to make all ecept how to read the file.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 05-29-2010 , 23:22   Re: How I Can Make a Mapsmenu in a ini file?
Reply With Quote #6

Quote:
Originally Posted by #8 SickneSS View Post
I just want to know the methods, no to do it for me

EDIT: I Know how to make all ecept how to read the file.
Start reading the manual of file functions

http://www.amxmodx.org/funcwiki.php?go=inc&id=3

Then try to understand how it's done in other plugins (like mapchooser)
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-29-2010 , 23:51   Re: How I Can Make a Mapsmenu in a ini file?
Reply With Quote #7

When ever I consider making a plugin like this I always start without doing any file functions. Everything is hardcoded into a const. Get the menu working with the const first. THEN and only then I add the file reading. This way you know that you have something that works before you start screwing with files and makes it much easier to debug.

You can look at my bot apology plugin (in my sig) to see how simple file reading works.
__________________

Last edited by fysiks; 05-29-2010 at 23:53.
fysiks is offline
#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
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-30-2010 , 03:21   Re: How I Can Make a Mapsmenu in a ini file?
Reply With Quote #9

Quote:
Originally Posted by #8 SickneSS View Post
I know how to make all (with const,loops,etc)
Your code proves this is untrue.
__________________
fysiks is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-30-2010 , 03:28   Re: How I Can Make a Mapsmenu in a ini file?
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
Your code proves this is untrue.
Ok,I just think that because when I use a const with the maps in that const i need to use a loop.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Reply



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