Raised This Month: $ Target: $400
 0% 

getting errors for menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-=*HQz=-=mAster nOob=-
Junior Member
Join Date: Mar 2006
Old 04-10-2006 , 03:13   getting errors for menu
Reply With Quote #1

i'm trying to make a menu where you can choose the skin of your gloves/knife/defuser kit, and everytime i compile i run into 3 problems:
Code:
...scripting\extra_skins.sma(47) : error 017 : undefined symbol "MENU_KEY_10"

...scripting\extra_skins.sma(75) : error 017 : undefined symbol "MENU_KEY_19"

...scripting\extra_skins.sma(87) : warning 217 : loose indication
dont worry about the commands in under the if's

can someone please fix this???

also, what are the commands for giving your player new skins for the gloves(hands), knife, and defuser kit??? lol thanks alot =D (dont worry I already know that you need to prechache the models, I just dont know the commands)
Attached Files
File Type: sma Get Plugin or Get Source (extra_skins.sma - 153 views - 2.9 KB)
-=*HQz=-=mAster nOob=- is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 04-10-2006 , 07:33  
Reply With Quote #2

i think this would work, but i dunno what it will do, accept for giving weapons...
Code:
#include <amxmodx> #include <fun> public plugin_init() {     register_plugin("extra_skins", "1.0", "mAster nOob")     register_menucmd(register_menuid("menu"), 1023, "giveSkin")     register_menucmd(register_menuid("submenu1"), 1023, "giveSkin1")     register_menucmd(register_menuid("submenu2"), 1023, "giveSkin2")     register_menucmd(register_menuid("submenu3"), 1023, "giveSkin3")     register_clcmd("giveme", "showSkinMenu") } stock showSkinMenu(id) {     new menu[192]     new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3         format(menu, 191, "What skin would you like to buy?^n^n1. Gloves^n2. Knives^n3. Defuser^n4. None")     show_menu(id, keys, menu, -1, "menu") } stock showSkinSubMenu1(id) {     new menu[192]     new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3         format(menu, 191, "What glove skin would you like to buy?^n^n1. Magic Gloves^n2. Reebok Gloves^n3. Nike Gloves^n4. None")     show_menu(id, keys, menu, -1, "submenu1") } stock showSkinSubMenu2(id) {     new menu[192]     new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_8|MENU_KEY_9         format(menu, 191, "What knife skin would you like to buy?^n^n1. Brass Knuckles^n2. Dildo^n3. Electric Guitar^n4. Katana^n5. Lightsaber^n6. Metal Pipe^n7. Finger^n8. Taser^n9. Wolverine Claws^n0. None")     show_menu(id, keys, menu, -1, "submenu2") } stock showSkinSubMenu3(id) {     new menu[192]     new keys = MENU_KEY_0|MENU_KEY_1     format(menu, 191, "What defuser kit skin would you like?^n^n1. Playboy Bunny^n2. None")     show_menu(id, keys, menu, -1, "submenu3") } public giveSkin(id, key) {         switch ( key ) {         case 0: showSkinSubMenu1(id)         case 1: showSkinSubMenu2(id)         case 2: showSkinSubMenu3(id)         case 3: client_print(id,print_chat,"Type in giveme in console to open this menu anytime.")     }     return PLUGIN_HANDLED } public giveSkin1(id, key) {         switch ( key ) {         case 0: give_item(id, "weapon_ak47")         case 1: give_item(id, "weapon_awp")         case 2: give_item(id, "weapon_awp")         case 3: client_print(id,print_chat,"Type in giveme in console to open this menu anytime.")          } } public giveSkin2(id, key) {         switch ( key ) {         case 0: give_item(id, "weapon_ak47")         case 1: give_item(id, "weapon_m4a1")         case 2: give_item(id, "weapon_awp")         case 3: give_item(id, "weapon_ak47")         case 4: give_item(id, "weapon_m4a1")         case 5: give_item(id, "weapon_awp")         case 6: give_item(id, "weapon_ak47")         case 7: give_item(id, "weapon_m4a1")         case 8: give_item(id, "weapon_awp")         case 9: client_print(id,print_chat,"Type in giveme in console to open this menu anytime.")     } } public giveSkin3(id, key) {         switch ( key ) {         case 0: give_item(id, "weapon_awp")         case 1: client_print(id,print_chat,"Type in giveme in console to open this menu anytime.")     } }
[ --<-@ ] Black Rose is offline
Reply



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 16:31.


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