Raised This Month: $ Target: $400
 0% 

Change the number of maps in a map vote


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-16-2010 , 18:41   Change the number of maps in a map vote
Reply With Quote #1

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]
and made it

Code:
new g_voteCount[6]
Then I also found

Code:
g_validMaps = 0
	g_optionName[0][0] = 0
	g_optionName[1][0] = 0
	g_optionName[2][0] = 0
	g_optionName[3][0] = 0
and changed it to

Code:
g_validMaps = 0
	g_optionName[0][0] = 0
	g_optionName[1][0] = 0
	g_optionName[2][0] = 0
	g_optionName[3][0] = 0
        g_optionName[4][0] = 0
        g_optionName[5][0] = 0

It 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?
ghostofmybrain 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 14:48.


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