Change the number of maps in a map vote
I was fooling around with adminvote.sma, trying to make it so that if an admin put up a map vote they could choose more than 4 maps for the vote.
Now, I have absolutely no knowledge of amx scripting. I was just messing around with it, and trying to logically figure out what things I would need to change, and try to find all the instances where these things were referenced. But the bottom line is I have no idea what I'm doing. I found Code:
new g_voteCount[4]Code:
new g_voteCount[6]Code:
g_validMaps = 0Code:
g_validMaps = 0It compiled fine, but when I tried to pull up a map vote it didn't do anything different. I was still limited to four maps. Can somebody point me in the right direction for editting this? |
Re: Change the number of maps in a map vote
Try
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: Change the number of maps in a map vote
That gave me some errors:
(260) : error 032: array index out of bounds (variable "g_optionName") (261) : error 032: array index out of bounds (variable "g_optionName") (344 -- 346) : error 047: array sizes do not match, or destination array is too small (439 -- 440) : error 047: array sizes do not match, or destination array is too small (570 -- 572) : error 047: array sizes do not match, or destination array is too small So I tried editting new g_optionName[4][64] to new g_optionName[6][64] And every time I saw g_voteCount = {0, 0, 0, 0,} I changed it to g_voteCount = {0, 0, 0, 0, 0, 0} It compiled that time, but still doesn't allow me to vote for more than 4 maps. Also, I have no idea what I was doing, I was just changing the lines where it told me there was an error, lol. |
Re: Change the number of maps in a map vote
2 Attachment(s)
Try this:
Fixed and Tested. |
Re: Change the number of maps in a map vote
That didn't work either.
|
Re: Change the number of maps in a map vote
Quote:
|
Re: Change the number of maps in a map vote
I mean I put your plugin on the server and it still does not allow me to choose more than four maps.
|
Re: Change the number of maps in a map vote
Quote:
It works perfect now. |
Re: Change the number of maps in a map vote
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. :(
|
Re: Change the number of maps in a map vote
Quote:
|
| All times are GMT -4. The time now is 14:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.