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-16-2010 , 19:13   Re: Change the number of maps in a map vote
Reply With Quote #1

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.

Last edited by ghostofmybrain; 06-16-2010 at 19:16.
ghostofmybrain is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-16-2010 , 19:48   Re: Change the number of maps in a map vote
Reply With Quote #2

Try this:

Fixed and Tested.
Attached Files
File Type: sma Get Plugin or Get Source (adminvote.sma - 503 views - 15.9 KB)
__________________

Last edited by fysiks; 06-17-2010 at 00:16.
fysiks 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