1-
PHP Code:
new g_maps = ArraySize(Maps);
->
2-Use loop to get that strings.
3-Remove
Code:
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
4-
Code:
menu_display(id, menu, 0);
->
Code:
menu_display(id, menu)
5-menu_item_getinfo will surely give error if you didn't give CALLBACK.
(FOR MORE INFO, CHECK NEW MENUS)