Участник
Пользователь
- Сообщения
- 195
- Реакции
- 43
- Помог
- 4 раз(а)
- Ошибка
-
L 08/01/2019 - 16:23:26: [AMXX] Displaying debug trace (plugin "menu.amxx", version "0.1")
L 08/01/2019 - 16:23:26: [AMXX] Run time error 10: native error (native "menu_display")
L 08/01/2019 - 16:23:26: [AMXX] [0] menu.sma::function_menu (line 34)
L 08/01/2019 - 16:23:26: Invalid menu id 6(7)
- ОС
- Linux
- Amx Mod X
-
Amx Mod X 1.9.0
- Билд
-
ReHLDS version: 3.6.0.675-dev Build
- ReGamedll
-
ReGameDLL version: 5.9.0.366-dev
- Версия Metamod
-
Metamod v1.21p37 2013/05/30 (5:13)
- Список метамодулей
-
[ 1] Reunion RUN - reunion.so v0.1.0.1 ini Start Never
[ 2] ReAuthCheck RUN - reauthcheck.so v0.1.6 ini Start Never
[ 3] VoiceTranscoder RUN - vtc.so v2017RC3 ini ANY
[ 4] AMX Mod X RUN - amxmodx.so v1.9.0.5 ini ANY
[ 5] Rechecker RUN - rechecker.so v2.5 ini ANY
[ 6] ReSemiclip RUN - resemiclip.so v2.3.9 ini ANY
[ 7] ReSRDetector RUN - resrdetector.so v0.1.0 ini ANY
[ 8] WHBlocker RUN - whblocker.so v1.5.696 ini ANY
[ 9] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl4 ANY
[10] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl4 ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl4 ANY
[12] ReAimDetector RUN - reaimdetector_am v0.2.2 pl4 ANY Never
[13] ReAPI RUN - reapi_amxx_i386. v5.9.0.1 pl4 ANY Never
[14] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl4 ANY
[15] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl4 ANY
[16] Engine RUN - engine_amxx_i386 v1.9.0.5 pl4 ANY
[17] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl4 ANY
17 plugins, 17 running
- Список плагинов
-
[ 1] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 2] Admin Loader 3.5 neygomon admin_loader.am running
[ 3] FreshBans 1.4.0b kanagava fresh_bans_183. running
[ 4] ScreenMaker 1.1 neygomon screen_maker.am running
[ 5] Ultimate Chats Control 5.2(c) neygomon ucc.amxx running
[ 6] UCC Addon: VoteGAG 1.2 neygomon ucc_votegag.amx running
[ 7] Admin Commands 1.9.0.5235 AMXX Dev Team admincmd.amxx running
[ 8] Slots Reservation 1.2 pUzzlik adminslots.amxx running
[ 9] Menus Front-End 1.5 neugomon menufront.amxx running
[ 10] Commands Menu 1.9.0.5235 AMXX Dev Team cmdmenu.amxx running
[ 11] Players Menu 1.7 neugomon plmenu.amxx running
[ 12] SF Warn Menu 0.1.4g serfreeman1337 sf_admin_warns. running
[ 13] Maps Menu 1.4.2 neugomon mapsmenu.amxx running
[ 14] Admin Chat 1.9.0.5235 AMXX Dev Team adminchat.amxx running
[ 15] Player Votes 1.0 neugomon player_votes.am running
[ 16] Dust2 Online [RR] 0.1 neugomon dust2_online_rr running
[ 17] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 18] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 19] Stats Configuration 1.9.0.5235 AMXX Dev Team statscfg.amxx running
[ 20] Say me and Say hp 1.4 neygomon sayme.amxx running
[ 21] Restrict Weapons 1.9.0.5235 AMXX Dev Team restmenu.amxx running
[ 22] Server Menu 0.1 maFFyoZZyk menu.amxx debug
[ 23] Show Online 1.0 neugomon show_online.amx running
- Автор плагина
- maFFyoZZyk
- Версия плагина
- 0.1
- Исходный код
-
#include <amxmodx>
new g_iMenu;
public plugin_init()
{
register_plugin("Server Menu", "0.1", "maFFyoZZyk")
register_clcmd("say /menu", "function_menu")
register_clcmd("menu", "function_menu")
register_clcmd("nightvision", "function_menu")
}
public plugin_cfg()
{
g_iMenu = menu_create("\yМеню\w Нашего\r Сервера\d", "menu_handler")
menu_additem(g_iMenu,"\r[\yОбнулить счет\r]","1")
menu_additem(g_iMenu,"\r[\yНоминировать карту\r]","2")
menu_additem(g_iMenu,"\r[\yЗаткнуть игрока\r]","3")
menu_additem(g_iMenu,"\r[\yГолосование за БАН\r]","4")
menu_additem(g_iMenu,"\r[\yКупить админку\r]","5")
menu_additem(g_iMenu,"\r[\yКупить випку\r]","6")
menu_additem(g_iMenu,"\r[\yТоп 10\r]","7")
menu_additem(g_iMenu,"\r[\yAdmin&Vip Онлайн\r]","8")
menu_additem(g_iMenu,"\r[\yВип Меню\r]","9")
menu_additem(g_iMenu,"\r[\yАдмин Меню\r]","10")
menu_setprop(g_iMenu, MPROP_EXITNAME, "Выход")
menu_setprop(g_iMenu, MPROP_EXIT,MEXIT_ALL)
}
public function_menu(id)
{
menu_display(id,g_iMenu,0)
return PLUGIN_HANDLED
}
public menu_handler(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64], access, callback
menu_item_getinfo(menu, item, access, data, 5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1: client_cmd(id, "say /rs")
case 2: client_cmd(id, "say /maps")
case 3: client_cmd(id, "say /mute")
case 4: client_cmd(id, "say /voteban")
case 5: client_cmd(id, "say /adminka")
case 6: client_cmd(id, "say /vipka")
case 7: client_cmd(id, "say /top10")
case 8: client_cmd(id, "say /admins")
case 9: client_cmd(id, "vipmenu")
case 10:client_cmd(id, "amxmodmenu")
}
return PLUGIN_HANDLED
}
Добрый вечер , может найдется человек который разбирается в плагинах и поможет исправить данную проблему в плагине ,))
В этой теме было размещено решение! Перейти к решению.