errors !!
error 29: invalid expression, assumed zero
error 17: undefined symbol "ClassMenu" error 17: undefined symbol "id" error 001: excpected token: ";", but found "}" error 29: invalid expression, assumed zero fatal error 107: too many errors messages on one line #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() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd( "say /class", "ClassMenu" ); public ClassMenu(id) { new menu = menu_create("\rClass Menu :^n\yMade By caked", "menu_handler"); menu_additem(menu, "\wLeone", "1", 0); menu_additem(menu, "\wCommando", "2", 0); menu_additem(menu, "\wMachine Gun", "3", 0); menu_additem(menu, "\wRambo", "4", 0); menu_additem(menu, "\wSchmidt", "5", 0); menu_additem(menu, "\wKrieg", "6", 0); menu_additem(menu, "\wIDF Defender", "7", 0); menu_additem(menu, "\wRifle", "8", 0); menu_additem(menu, "\wMaverick", "9", 0); menu_additem(menu, "\wClarion", "10", 0); menu_additem(menu, "\wBullpup", "11", 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[ JailBreak ]^x01 You Have Chosen The Class ^x03Leone^x03 ^x04[Shotgun][Deagle][HE Grenade]^x04"); give_item(id, "weapon_xm1014"); give_item(id, "weapon_deagle"); give_item(id, "weapon_hegrenade"); cs_set_user_bpammo( id, CSW_XM1014, 200 ); cs_set_user_bpammo( id, CSW_DEAGLE, 200 ); } case 2: { ColorChat(id, RED,"^x04[ JailBreak ]^x01 You Have Chosen The Class^x03 Commando^x03 ^x04[Dak Dak][Usp][HE Grenade]^x04"); give_item(id, "weapon_sg550"); give_item(id, "weapon_usp"); give_item(id, "weapon_flashbang"); cs_set_user_bpammo( id, CSW_SG550, 200 ); cs_set_user_bpammo( id, CSW_USP, 200 ); } case 3: { ColorChat(id, RED,"^x04[ JailBreak ]^x01 You Have Chosen The Class ^x03Machine Gun^x03 ^x04[Mp5][Glock][Smoke Grenade]^x04"); give_item(id, "weapon_mp5navy"); give_item(id, "weapon_glock18"); give_item(id, "weapon_smokegrenade"); cs_set_user_bpammo( id, CSW_MP5NAVY, 200 ); cs_set_user_bpammo( id, CSW_GLOCK18, 200 ); } case 4: { ColorChat(id, RED,"^x04[ JailBreak ]^x01 You Have Chosen The Class ^x03Rambo^x03 ^x04[Ak47][Five-Seven][HE Grenade]^x04"); give_item(id, "weapon_ak47"); give_item(id, "weapon_fiveseven"); give_item(id, "weapon_hegrenade"); cs_set_user_bpammo( id, CSW_AK47, 200 ); cs_set_user_bpammo( id, CSW_FIVESEVEN, 200 ); } case 5: { ColorChat(id, RED,"^x04[ JailBreak ]^x01 You Have Chosen The Class ^x03Schmidt^x03 ^x04[Scout][Deagle][Flash Bang]^x04"); give_item(id, "weapon_scout"); give_item(id, "weapon_deagle"); give_item(id, "weapon_flashbang"); cs_set_user_bpammo( id, CSW_SCOUT, 200 ); cs_set_user_bpammo( id, CSW_DEAGLE, 200 ); } case 6: { ColorChat(id, RED,"^x04[ JailBreak ]^x01 You Have Chosen The Class ^x03Krieg^x03 ^x04[Krieg 552][Usp][Smoke Grenade]^x04"); give_item(id, "weapon_sg552"); give_item(id, "weapon_usp"); give_item(id, "weapon_smokegrenade"); cs_set_user_bpammo( id, CSW_SG552, 200 ); cs_set_user_bpammo( id, CSW_USP, 200 ); } case 7: { ColorChat(id, RED,"^x04[ JailBreak ]^x01 You Have Chosen The Class ^x03IDF Defender^x03 ^x04[Galil][Glock][He Grenade]^x04"); give_item(id, "weapon_galil"); give_item(id, "weapon_glock18"); give_item(id, "weapon_hegrenade"); cs_set_user_bpammo( id, CSW_GALIL, 200 ); cs_set_user_bpammo( id, CSW_GLOCK18, 200 ); } case 8: { ColorChat(id, RED,"^x04[ JailBreak ]^x01 You Have Chosen The Class ^x03Rifle^x03 ^x04[Sniper][Five-Seven][Flash Bang]^x04"); give_item(id, "weapon_awp"); give_item(id, "weapon_fiveseven"); give_item(id, "weapon_flashbang"); cs_set_user_bpammo( id, CSW_AWP, 200 ); cs_set_user_bpammo( id, CSW_FIVESEVEN, 200 ); } case 9: { ColorChat(id, RED,"^x04[ JailBreak ]^x01 You Have Chosen The Class ^x03Maverick^x03 ^x04[M4a1][Deagle][Smoke Grenade]^x04"); give_item(id, "weapon_m4a1"); give_item(id, "weapon_deagle"); give_item(id, "weapon_smokegrenade"); cs_set_user_bpammo( id, CSW_M4A1, 200 ); cs_set_user_bpammo( id, CSW_DEAGLE, 200 ); } case 10: { ColorChat(id, RED,"^x04[ JailBreak ]^x01 You Have Chosen The Class^x03 Clarion^x03 ^x04[Famas][Usp][He Grenade]^x04"); give_item(id, "weapon_famas"); give_item(id, "weapon_usp"); give_item(id, "weapon_hegrenade"); cs_set_user_bpammo( id, CSW_FAMAS, 200 ); cs_set_user_bpammo( id, CSW_USP, 200 ); } case 11: { ColorChat(id, RED,"^x04[ JailBreak ]^x01 You Have Chosen The Class^x03 Bullpup^x03 ^x04[Aug][Glock][Flash Bang]^x04"); give_item(id, "weapon_aug"); give_item(id, "weapon_glock18"); give_item(id, "weapon_flashbang"); cs_set_user_bpammo( id, CSW_AUG, 200 ); cs_set_user_bpammo( id, CSW_GLOCK18, 200 ); } } } |
Re: errors !!
When posting errors, post the FULL errors.
When posting code, if it is short, post it in [CODE][/CODE] tags, but if it is long code, post it as an attachment. The error says that ClassMenu is not defined. So, if it is in the code and it can't see it being created then you need to look above that line of code to find out why it's not being seen correctly. In this case it is because you never close the plugin_init() function. |
Re: errors !!
for all mods ive done plugin_init() and no errors how come for dis then?
|
Re: errors !!
Quote:
|
Re: errors !!
I don't get what's the f*cking problem 0_0
PHP Code:
|
Re: errors !!
all done needed to just put }
|
| All times are GMT -4. The time now is 13:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.