Raised This Month: $ Target: $400
 0% 

Menu doesent shows up.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-10-2013 , 18:23   Re: Menu doesent shows up.
Reply With Quote #2

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

Last edited by Blizzard_87; 05-10-2013 at 18:28.
Blizzard_87 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 10:46.


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