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.
__________________