1 Error for my DeathMatch Class
1 Error saying,
Error 36: Empty Statement
PHP Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #include <hamsandwich> #include <engine> #include <fakemeta> #include <fakemeta_util> #include <colorchat> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" public plugin_init() { { RegisterHam(Ham_Spawn, "player", "DeathMatchClassMenu", 1); } register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd( "say /class", "DeathMatchClassMenu" ); } public DeathMatchClassMenu(id) { new menu = menu_create("\rDeathMatch Class Menu:^n\yMade By caked.", "menu_handler"); menu_additem(menu, "\wM4a1 \r[Deagle]", "1", 0); menu_additem(menu, "\wAk47 \r[Usp]", "2", 0); menu_additem(menu, "\wSniper \r[Deagle]", "3", 0); menu_additem(menu, "\wM249 \r[Five-Seven]", "4", 0); menu_additem(menu, "\wMp5 \r[Glock]", "5", 0); menu_additem(menu, "\wAug \r[Deagle]", "6", 0); menu_additem(menu, "\wFamas \r[Usp]", "7", 0); menu_additem(menu, "\wScout \r[Five-Seven]", "8", 0); menu_additem(menu, "\wGalil \r[Glock]", "9", 0); menu_additem(menu, "\wShotgun \r[Deagle]", "10", 0); menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); menu_display(id, menu, 0); } public menu_handler(id, menu, item) { if( item == MENU_EXIT ) { menu_destroy(menu); return PLUGIN_HANDLED; } new data[6], iName[64]; new access, callback; menu_item_getinfo(menu, item, access, data,5, iName, 63, callback); new key = str_to_num(data); switch(key) { case 1: { ColorChat(id, RED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04M4a1/Deagle"); give_item(id, "weapon_m4a1"); give_item(id, "weapon_deagle"); cs_set_user_bpammo( id, CSW_M4A1, 200 ); cs_set_user_bpammo( id, CSW_DEAGLE, 200 ); } case 2: { ColorChat(id, RED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Ak47/Usp"); give_item(id, "weapon_ak47") give_item(id, "weapon_usp") cs_set_user_bpammo( id, CSW_AK47, 200 ); cs_set_user_bpammo( id, CSW_USP, 200 ); } case 3: { ColorChat(id, RED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Sniper/Deagle"); give_item(id, "weapon_awp"); give_item(id, "weapon_deagle"); cs_set_user_bpammo( id, CSW_AWP, 200 ); cs_set_user_bpammo( id, CSW_DEAGLE, 200 ); } case 4: { ColorChat(id, RED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04M249/Five-Seven"); give_item(id, "weapon_m249"); give_item(id, "weapon_fiveseven");; cs_set_user_bpammo( id, CSW_M249, 200 ); cs_set_user_bpammo( id, CSW_FIVESEVEN, 200 ); } case 5: { ColorChat(id, RED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Mp5/Glock"); give_item(id, "weapon_mp5navy"); give_item(id, "weapon_glock18"); cs_set_user_bpammo( id, CSW_MP5NAVY, 200 ); cs_set_user_bpammo( id, CSW_GLOCK18, 200 ); } case 6: { ColorChat(id, RED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Aug/Deagle"); give_item(id, "weapon_aug"); give_item(id, "weapon_deagle"); cs_set_user_bpammo( id, CSW_AUG, 200 ); cs_set_user_bpammo( id, CSW_DEAGLE, 200 ); } case 7: { ColorChat(id, RED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Famas/Usp"); give_item(id, "weapon_famas"); give_item(id, "weapon_usp"); cs_set_user_bpammo( id, CSW_FAMAS, 200 ); cs_set_user_bpammo( id, CSW_USP, 200 ); } case 8: { ColorChat(id, RED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Scout/Five-Seven"); give_item(id, "weapon_scout"); give_item(id, "weapon_fiveseven"); cs_set_user_bpammo( id, CSW_SCOUT, 200 ); cs_set_user_bpammo( id, CSW_FIVESEVEN, 200 ); } case 9: { ColorChat(id, RED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Galil/Glock"); give_item(id, "weapon_galil"); give_item(id, "weapon_glock18"); cs_set_user_bpammo( id, CSW_GALIL, 200 ); cs_set_user_bpammo( id, CSW_GLOCK18, 200 ); } case 10: { ColorChat(id, RED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Shotgun/Deagle"); give_item(id, "weapon_famas"); give_item(id, "weapon_usp"); cs_set_user_bpammo( id, CSW_XM1014, 200 ); cs_set_user_bpammo( id, CSW_DEAGLE, 200 ); } } }
|