chakki056skrip Дата: Четверг, 2013-12-19, 15:02 | Сообщение # 1
Сообщений: 287
L 12/19/2013 - 14:30:49: Start of error session. L 12/19/2013 - 14:30:49: Info (map "de_dust2_2x2_css") (file "addons/amxmodx/logs/error_20131219.log") L 12/19/2013 - 14:30:49: Function "event_new_round" was not found L 12/19/2013 - 14:30:49: [AMXX] Run time error 19 (plugin "vipmenu.amxx") - debug not enabled! Как это исправить!? Вот исходник плагина
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <engine> #include <fun> #include <hamsandwich> #define ACCESS_FLAG ADMIN_LEVEL_H #define MPROP_BACKNAME 2 #define MPROP_NEXTNAME 3 #define MPROP_EXITNAME 4 public plugin_init() { register_plugin("Vip_menu", "1.0", "FakER") register_clcmd("vipmenu", "showMenu", ACCESS_FLAG, "vip_menu") register_logevent("event_new_round", 2, "1=Round_Start") } public showMenu(id) { if((get_user_flags(id) & ACCESS_FLAG)) { goMenu(id) } return PLUGIN_HANDLED } public goMenu(id) { new i_Menu = menu_create("\wVIP меню", "menu_handler" ) menu_additem(i_Menu, "\rВозродится", "1") menu_additem(i_Menu, "\wГравитация", "2") menu_additem(i_Menu, "\yСкорость", "3") menu_additem(i_Menu, "\r150 HP", "4") menu_additem(i_Menu, "\wAWP+\yDeagle+\rM4a1", "6") menu_additem(i_Menu, "\yГр\rан\wаты", "7") menu_setprop(i_Menu, 4, "Выход") menu_display(id, i_Menu, 0) return PLUGIN_HANDLED } public menu_handler(id, menu, item) { if (item == MENU_EXIT) { menu_destroy(menu) return PLUGIN_HANDLED } new s_Data[6], s_Name[64], i_Access, i_Callback menu_item_getinfo(menu, item, i_Access, s_Data, charsmax(s_Data), s_Name, charsmax(s_Name), i_Callback) new i_Key = str_to_num(s_Data) switch(i_Key) { case 1: { ExecuteHam(Ham_CS_RoundRespawn, id) client_cmd(id, "vip_menu") } case 2: { if(is_user_alive(id)) { set_user_gravity(id, 0.5) } client_cmd(id, "vip_menu") } case 3: { if(is_user_alive(id)) { set_user_maxspeed(id, 600.0) } client_cmd(id, "vip_menu") } case 4: { if(is_user_alive(id)) { set_user_health(id, 150) } client_cmd(id, "vip_me") } case 6: { if(is_user_alive(id)) { give_item(id, "weapon_awp") give_item(id, "ammo_338magnum") give_item(id, "ammo_338magnum") give_item(id, "ammo_338magnum") give_item(id, "ammo_338magnum") give_item(id, "weapon_deagle") give_item(id, "ammo_50ae") give_item(id, "ammo_50ae") give_item(id, "ammo_50ae") give_item(id, "ammo_50ae") give_item(id, "weapon_m4a1") give_item(id, "ammo_556nato") give_item(id, "ammo_556nato") give_item(id, "ammo_556nato") give_item(id, "ammo_556nato") } client_cmd(id, "vip_menu") } case 7: { if(is_user_alive(id)) { give_item(id, "weapon_hegrenade") give_item(id, "weapon_flashbang") give_item(id, "weapon_flashbang") give_item(id, "weapon_smokegrenade") } client_cmd(id, "vip_menu") } } return PLUGIN_HANDLED; }
Сообщение отредактировал chakki056skrip - Четверг, 2013-12-19, 15:04