new data[6], szName[64]; new access, callback; menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
new key = str_to_num(data);
switch(key) { case 1: { SubMenuAdminCommands(id); } case 2: { SubMenuGunMenu(id); } case 3: { ColorChat(id, GREEN, "^1[^4GoODLuCk^1] ^3This Plugins is made by NaimB77 & KaNe!"); menu_destroy(menu); return PLUGIN_HANDLED; } } SubMenuVip(id) { new menu = menu_create("\y[VIP Menu]", "submenu_handlerVip")
new data[6], szName[64]; new access, callback; menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
new key = str_to_num(data);
switch(key) { case 1: { ColorChat(id, GREEN, "^1[^4GoODLuCk^1] ^3This Plugins is still WORKING PROGRESS!"); menu_destroy(menu); return PLUGIN_HANDLED; } case 2: { ColorChat(id, GREEN, "^1[^4GoODLuCk^1] ^3This Plugins is still WORKING PROGRESS!"); menu_destroy(menu); return PLUGIN_HANDLED; } case 3: { ColorChat(id, GREEN, "^1[^4GoODLuCk^1] ^3This Plugins is still WORKING PROGRESS!"); menu_destroy(menu); return PLUGIN_HANDLED; } } SubMenuGunMenu(id) { new menu = menu_create("\rAdmin Gun Menu!", "submenu_handlerGunMenu")
new data[6], szName[64]; new access, callback; menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
new key = str_to_num(data);
switch(key) { case 1: { strip_user_weapons(id) if ( get_user_team( id ) == 2 ) { cs_set_user_defuse( id, 1 ); } give_item(id, "weapon_m4a1") cs_set_user_bpammo(id,CSW_M4A1,90) give_item(id, "weapon_deagle") cs_set_user_bpammo(id, CSW_DEAGLE, 45) give_item(id, "weapon_knife") ColorChat(id, GREEN, "^41[^4GoODLuCk^1] ^3You Have Just Picked M4A1 + Deagle!") menu_destroy(menu) return PLUGIN_HANDLED; } case 2: { strip_user_weapons(id) if ( get_user_team( id ) == 2 ) { cs_set_user_defuse( id, 1 ); } give_item(id, "weapon_ak47") cs_set_user_bpammo(id,CSW_AK47,90) give_item(id, "weapon_deagle") cs_set_user_bpammo(id, CSW_DEAGLE, 45) give_item(id, "weapon_knife") ColorChat(id, GREEN, "1[^4GoODLuCk^1] ^3You Have Just Picked AK47 + Deagle") menu_destroy(menu) return PLUGIN_HANDLED; } } { menu_destroy(menu); return PLUGIN_HANDLED; } }
SubMenuAdminCommands(id) { new menu = menu_create("\rAdmin Commands!", "submenu_handlerAdminCommands")
menu_additem(menu, "\d WORKING PROGRESS", "1", 0); menu_additem(menu, "\d WORKING PROGRESS", "2", 0); menu_additem(menu, "\d WORKING PROGRESS", "3", 0);
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); menu_display(id, menu, 0); } public submenu_handlerAdminCommands(id, menu, item) { new data[6], szName[64]; new access, callback; menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
new key = str_to_num(data);
switch(key) { case 1: { ColorChat(id, GREEN, "^1[^4GoODLuCk^1] ^3This Plugins is still WORKING PROGRESS!"); menu_destroy(menu); return PLUGIN_HANDLED; } case 2: { ColorChat(id, GREEN, "^1[^4GoODLuCk^1] ^3This Plugins is still WORKING PROGRESS!"); menu_destroy(menu); return PLUGIN_HANDLED; } case 3: { ColorChat(id, GREEN, "^1[^4GoODLuCk^1] ^3This Plugins is still WORKING PROGRESS!"); menu_destroy(menu); return PLUGIN_HANDLED; } } return PLUGIN_HANDLED;
} public SubMenuGunMenu(id) { new menu = menu_create("\rAdmin Gun Menu!", "submenu_handlerGunMenu")
Re: [Menu] Errors While Compiling my Menu Help Me Fix This Please!
Quote:
Originally Posted by NaimB77
(Post 1887987)
GooDLucK by the way :)
No luck needed. Your issues are very trivial and could be avoided if you take the time the time to actually try to code. Look at tutorials and look at plugins that work to see how things should be done if you can't figure it out.
NaimB77
02-06-2013 07:50
Re: [Menu] Errors While Compiling my Menu Help Me Fix This Please!
Quote:
Originally Posted by fysiks
(Post 1888198)
No luck needed. Your issues are very trivial and could be avoided if you take the time the time to actually try to code. Look at tutorials and look at plugins that work to see how things should be done if you can't figure it out.
True, but I have a problem when I compile something on AMXX Studio, it says error and saying I have to check settings. So that's why I posted this and I couldnt fix my errors.