Raised This Month: $ Target: $400
 0% 

VoteMenu - index out of bounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shlomi
Junior Member
Join Date: Oct 2013
Old 01-09-2015 , 14:58   Re: VoteMenu - index out of bounds
Reply With Quote #1

You are trying to get data from an array in a place doesn't exist.
lets say i have an array with four spots ( Array[ 4 ], i have Array[ 0 ], Array[ 1 ], Array[ 2 ] and Array[ 3 ] )
this error would happen if i will try to get data from a place above 3 ( Array[ 6 ] for exmaple )
if you want us to help you, give us the specific line the debug sends you
Shlomi is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-09-2015 , 18:30   Re: VoteMenu - index out of bounds
Reply With Quote #2

You should check if item is greater than -1 (not just if it equals MENU_EXIT).

You should debug the code to see if you are actually getting a negative number (I recently had this issue which is why my first suggestion is as stated above).
__________________
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 15:24.


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