I would probably go with something like this (untested):
PHP Code:
new const MENU_OPTIONS[][] =
{
"Option 69",
"Option 420",
"Option 1337",
"So many options, wow"
};
// Set everything to -1 so there's no gray option by default. Is this the desired behaviour?
new g_ItemID[33] = {-1, ...};
displayMenu(id)
{
new menu = menu_create("Best menu ever", "AwesomeMenuHandler");
new buffer[64];
for(new i = 0; i < sizeof(MENU_OPTIONS); i++)
{
formatex(buffer, charsmax(buffer), "\%c%s", (g_ItemID == i ? 'd' : 'w'), MENU_OPTIONS[i]);
menu_additem(menu, buffer);
}
menu_display(id, menu);
}