Code:
public show_Weapons_Menu(id){
new szText[100];
formatex(szText,99, "\yWeapons General Menu");
new menu = menu_create(szText, "Menu_Handler");
new ItemName[64];
for(new i; i<sizeof(g_Weapons_Menues); i++)
{
formatex(ItemName, charsmax(ItemName), "%s", g_Weapons_Menues[i]);
menu_additem(menu, ItemName);
}
menu_setprop(menu, MPROP_NUMBER_COLOR, "\y");
menu_display(id, menu, 0);
return PLUGIN_HANDLED;
}
why do you format the menuitem names again... they are already strings also change this
Code:
new g_Weapons_Menues[][]=
to a const
Code:
new const g_Weapons_Menues[][]=
now when you add items into menu_additem
you can just directly add from the const.
Code:
public show_Weapons_Menu(id){
new szText[100];
formatex(szText,99, "\yWeapons General Menu");
new menu = menu_create(szText, "Menu_Handler");
for( new i; i < sizeof( g_Weapons_Menues ); i++)
{
menu_additem(menu, g_Weapons_Menues [ i ]);
}
menu_setprop(menu, MPROP_NUMBER_COLOR, "\y");
menu_display(id, menu, 0);
return PLUGIN_HANDLED;
}
do the same for all others.
EDIT:
not sure but you should prolly change way menu shows...
show primary menu first then once selected then it opens up the secondary then after that the nades...
__________________