Raised This Month: $ Target: $400
 0% 

Change the number of maps in a map vote


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-17-2010 , 00:21   Re: Change the number of maps in a map vote
Reply With Quote #1

Maybe you uploaded the wrong thing? I put your plugin from post 4 onto the server (and I recompile the code, both cause the same thing to happen), choose "Vote for new map" in the amxmodx menu, and I cannot put up any maps beyond 4. Once I get to four, every single other map gets greyed out and the only option I can choose is to start the vote. I tested it on my linux server and on my windows server, so I'm not sure why it's working for you but not for me.
ghostofmybrain is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-17-2010 , 00:29   Re: Change the number of maps in a map vote
Reply With Quote #2

Quote:
Originally Posted by ghostofmybrain View Post
Maybe you uploaded the wrong thing? I put your plugin from post 4 onto the server (and I recompile the code, both cause the same thing to happen), choose "Vote for new map" in the amxmodx menu, and I cannot put up any maps beyond 4. Once I get to four, every single other map gets greyed out and the only option I can choose is to start the vote. I tested it on my linux server and on my windows server, so I'm not sure why it's working for you but not for me.
That would be because the amx_votemapmenu command (the command used by amxmodmenu)is NOT in adminvote.sma. This is the first time you've mentioned using a menu.
__________________
fysiks is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-17-2010 , 00:51   Re: Change the number of maps in a map vote
Reply With Quote #3

Quote:
That would be because the amx_votemapmenu command (the command used by amxmodmenu)is NOT in adminvote.sma. This is the first time you've mentioned using a menu.
Well, like I said, I'm really new at this. I didn't mention it because I didn't know it was pertinent, but I can see you're getting frustrated at my noobishness. So I appologize for wasting your time, and thank you for helping me narrow down my question better.


Does anybody know which .sma to edit to change the fact that when I pull up a map vote through the amx menu it only allows me to vote for four maps? Once I can find where it is, I'll try to look around and fix it on my own (best way to learn, IMO), but if I can't figure it out I'll post for more help.
ghostofmybrain is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-17-2010 , 00:53   Re: Change the number of maps in a map vote
Reply With Quote #4

mapsmenu.sma
__________________
fysiks is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-17-2010 , 21:27   Re: Change the number of maps in a map vote
Reply With Quote #5

Now options 5 and 6 cancel the vote.
ghostofmybrain is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-17-2010 , 21:42   Re: Change the number of maps in a map vote
Reply With Quote #6

Line 181, change 3 to 5.
__________________
fysiks is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-17-2010 , 21:46   Re: Change the number of maps in a map vote
Reply With Quote #7

Ohhh, I thought that might have been the case, but I was confused about how it was > 3 instead of > 4, so I wrote it off as being unrelated.

It works perfectly now, thanks for the help!

By the way, what did the 527 I editted out of line 60 mean?
ghostofmybrain is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-18-2010 , 00:04   Re: Change the number of maps in a map vote
Reply With Quote #8

Quote:
Originally Posted by ghostofmybrain View Post
By the way, what did the 527 I editted out of line 60 mean?
Code:
527 = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_0
When I did adminvote.sma for you it proved to me that I needed to add the extra keys to the original registering of the menu so that it would send those keystrokes through to the function that handles the menu.

So, only keys 1, 2, 3, 4 and 0 are sent through to the handling function when using 527.
__________________
fysiks is offline
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 03-13-2017 , 15:05   Re: Change the number of maps in a map vote
Reply With Quote #9

I dont mean to raise the dead but how could i have more that 4 maps in a cfg file execing this

Amx_votemaps map1 map2 map3 map4

Is there a easy way to let it have more than 4 maps? I need a list at the end of a pug to have all oug maps, and not be restricted to 4.

Atm i have to use two seperate cfgs.
Hectik17 is offline
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 14:48.


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