Raised This Month: $ Target: $400
 0% 

Very weird 'index out of bounds' error.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-02-2009 , 08:53   Very weird 'index out of bounds' error.
Reply With Quote #1

Code:
new pressed[ 5 ], map = 0;     menu_item_getinfo( menu, item, _access, pressed, charsmax( pressed ), name, charsmax( name ), callback );     map = str_to_num( pressed ); // First map starts at Maps[0] and not 1, so we need to substract 1 from the pressed key.     g_iVotes[ map - 1 ]++; // This is where I get the index out of bounds error. g_iVotes have 50 cells.

Thanks in advance, +karma to helpers.
__________________
O o
/¯________________________
| IMMA FIRIN' MAH LAZOR!!!
\_¯¯¯

Last edited by Dores; 01-02-2009 at 09:14.
Dores 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 09:17.


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