Пользователь
- Сообщения
- 17
- Реакции
- 0
- Ошибка
-
Run time error 10 (plugin "a.amxx") (native "menu_cancel") - debug not enabled!
- ОС
- Linux
- Amx Mod X
-
1.9.0.5
- Билд
-
7882
- ReGamedll
-
нет
- Версия Metamod
-
1.21p38
- Список метамодулей
-
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0.5 ini Start ANY
[ 2] dproto_EF RUN - dproto_i386.so v0.9.582 ini Start Never
[ 3] VoiceTranscoder RUN - VoiceTranscoder. v2017RC5 ini ANY ANY
[ 4] WHBlocker RUN - whblocker_mm_i38 v1.5.697 ini Chlvl ANY
[ 5] POD-Bot mm RUN - podbot_mm_i386.s v3.0B20a ini Chlvl ANY
[ 6] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl1 ANY ANY
[ 7] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl1 ANY ANY
[ 8] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl1 ANY ANY
[ 9] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl1 ANY ANY
[10] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl1 ANY ANY
[11] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl1 ANY ANY
- Список плагинов
-
[ 1] Admin Base 1.9.0.5241 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.9.0.5241 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.9.0.5241 AMXX Dev Team adminhelp.amxx running
[ 4] Slots Reservation 1.9.0.5241 AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual System 1.9.0.5241 AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.9.0.5241 AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.9.0.5241 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.9.0.5241 AMXX Dev Team plmenu.amxx running
[ 9] Maps Menu 1.9.0.5241 AMXX Dev Team mapsmenu.amxx running
[ 10] Plugin Menu 1.9.0.5241 AMXX Dev Team pluginmenu.amxx running
[ 11] Admin Chat 1.9.0.5241 AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.9.0.5241 AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.9.0.5241 AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.9.0.5241 AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.9.0.5241 AMXX Dev Team adminvote.amxx running
[ 16] NextMap 1.9.0.5241 AMXX Dev Team nextmap.amxx running
[ 17] Nextmap Chooser 1.9.0.5241 AMXX Dev Team mapchooser.amxx running
[ 18] TimeLeft 1.9.0.5241 AMXX Dev Team timeleft.amxx running
[ 19] Pause Plugins 1.9.0.5241 AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configuration 1.9.0.5241 AMXX Dev Team statscfg.amxx running
[ 21] StatsX 1.9.0.5241 AMXX Dev Team statsx.amxx running
[ 22] Damager 2.0 Prayer damager.amxx running
[ 23] EvilSpectator 1.0 OverGame EvilSpectator.a running
[ 24] Меню сервер� 1.4 OverGame EvilMenu.amxx running
[ 25] EvilDeadChat 1.1 OverGame EvilDeadChat.am running
[ 26] Военные зва� 1.2 fix OverGame EvilArmy.amxx running
[ 27] POD-Bot Menu 1.3 g4s|figurE.09 amxx_podbotmenu running
[ 28] abcd 1.0 ABC abcd.amxx running
- Автор плагина
- я
- Версия плагина
- 1
- Исходный код
-
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
//include <colorchat>
#define PLUGIN "Other and VIP system"
#define VERSION "1.0"
#define AUTHOR "ABC"
#define stopselectweapontime 20.0
new selectweapontimeexit = 0;//время выбора оружия вышло
new i_Menu;
public plugin_init() {
register_logevent("round_start",2,"1=Round_Start")
//register_clcmd("weaponmenu", "cmdMenu", ADMIN_ALL);
register_plugin(PLUGIN, VERSION, AUTHOR);
}
public round_start()
{
selectweapontimeexit = 0
for (new id = 1; id <= MaxClients; id++)
{
if (is_user_connected(id) && is_user_alive(id))
{
cmdMenu(id)
}
}
}
public cmdMenu(id) {
i_Menu = menu_create("Меню выбора оружия", "menu_handler");
menu_additem(i_Menu, "Взять Desert Eagle", "1", 0);
menu_additem(i_Menu, "Взять AK-47", "2", 0);
menu_additem(i_Menu, "Взять M4A1", "3", 0);
menu_setprop(i_Menu, MPROP_EXITNAME, "Выход");
menu_display(id, i_Menu, 0)
set_task(stopselectweapontime, "selectweapontimeexit_f", 1)//через stopselectweapontime секунд запрет на выбор оружия
}
public menu_handler(id, menu, item) {
if( item < 0 ) return PLUGIN_CONTINUE;
if(selectweapontimeexit == 0)
{
new cmd[3], access, callback;
menu_item_getinfo(menu, item, access, cmd,2,_,_, callback);
new Choise = str_to_num(cmd)
switch (Choise) {
case 1:
{
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_AK47, 35)
}
case 2:
{
give_item(id, "weapon_ak47")
cs_set_user_bpammo(id, CSW_AK47, 90)
}
case 3:
{
give_item(id, "weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 90)
}
}
}
else if (is_user_connected(id) && !is_user_alive(id)) client_print(id,print_chat,"Вы мертвы")
else client_print(id,print_chat,"Меню выбора оружия недоступно")
return PLUGIN_HANDLED;
}
public selectweapontimeexit_f(i_Menu)
{
selectweapontimeexit = 1;
menu_cancel(i_Menu)
menu_destroy(i_Menu)
}
Первый раз пишу плагины и появились ошибки. Что я не так сделал?
06/10/2022 - 18:13:11: Player 1 is not in game
L 06/10/2022 - 18:13:11: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_cancel") - debug not enabled!
L 06/10/2022 - 18:13:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:13:11: Player 1 is not in game
L 06/10/2022 - 18:13:11: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_cancel") - debug not enabled!
L 06/10/2022 - 18:13:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:13:11: Player 1 is not in game
L 06/10/2022 - 18:13:11: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_cancel") - debug not enabled!
L 06/10/2022 - 18:13:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
или
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
06/10/2022 - 18:13:11: Player 1 is not in game
L 06/10/2022 - 18:13:11: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_cancel") - debug not enabled!
L 06/10/2022 - 18:13:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:13:11: Player 1 is not in game
L 06/10/2022 - 18:13:11: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_cancel") - debug not enabled!
L 06/10/2022 - 18:13:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:13:11: Player 1 is not in game
L 06/10/2022 - 18:13:11: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_cancel") - debug not enabled!
L 06/10/2022 - 18:13:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
или
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/10/2022 - 18:26:02: Invalid menu id 1(7)
L 06/10/2022 - 18:26:02: [AMXX] Run time error 10 (plugin "abcd.amxx") (native "menu_destroy") - debug not enabled!
L 06/10/2022 - 18:26:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
В этой теме было размещено решение! Перейти к решению.