Учимся оформлять - для ошибок есть свое поле. Пока исправил за автора
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
- Ошибка
-
L 04/08/2018 - 21:47:18: [AMXX] Plugin "amxmodsmenu.amxx" failed to load: Plugin uses an unknown function (name "admin_expired") - check your modules.ini.
- ОС
- Linux
- Билд
-
Protocol version 48 Exe version 1.1.2.7/Stdio (cstrike) ReHLDS version: 3.4.0.639-dev Build date: 15:17:35 Feb 27 2018 (1417)
C++
- ReGamedll
-
Metamod v1.21p37
C++
- Список метамодулей
-
[ 1] Reunion RUN - reunion_mm_i386. v0.1.75 ini Start Never [ 2] SafeNameAndChat RUN - SafeNameAndChat. v1.1 ini ANY ANY [ 3] AMX Mod X RUN - amxmodx_mm_i386. v1.8.2 ini Start ANY [ 4] WHBlocker RUN - whblocker_mm_i38 v1.5.695 ini Chlvl ANY [ 5] Rechecker RUN - rechecker_mm_i38 v2.4 ini Chlvl ANY [ 6] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY [ 7] VoiceTranscoder RUN - VoiceTranscoder. v2017RC3 ini ANY ANY [ 8] ProcessCmds RUN - processcmds_mm_i v1.1.4 ini Start Never [ 9] ReAuthCheck RUN - reauthcheck_mm_i v0.1.6 ini Start Never [10] ReAimDetector RUN - reaimdetector_am v0.1.6 pl3 ANY Never [11] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl3 ANY ANY [12] MySQL RUN - mysql_amxx_i386. v1.8.2 pl3 ANY ANY [13] Engine RUN - engine_amxx_i386 v1.8.2 pl3 ANY ANY [14] CSX RUN - csx_amxx_i386.so v1.8.2 pl3 ANY ANY [15] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl3 ANY ANY [16] CStrike RUN - cstrike_amxx_i38 v1.8.2 pl3 ANY ANY [17] Fun RUN - fun_amxx_i386.so v1.8.2 pl3 ANY ANY
C++
- Список плагинов
-
[ 1] ReAimDetector API 0.1.6/1 ReHLDS Team reaimdetector.a running [ 2] FreshBans 1.3.7b kanagava fresh_bans_137b running [ 3] ScreenMaker 1.1 neygomon screen_maker.am running [ 4] Admin Loader 2.6.2 neygomon admin_loader.am running [ 5] [182] Chat RBS 17.12.18 SKAJIbnEJIb chat_rbs.amxx running [ 6] [182] Army Ranks Ultim 17.12.12 SKAJIbnEJIb army_ranks_ulti running [ 7] Instant AutoTeamBalanc 1.2.0 ConnorMcLeod instant_autotea running [ 8] [182] AR Vampire 17.08.22 SKAJIbnEJIb ar_vampire.amxx running [ 9] [182] Afk Time 17.10.30 Sanlerus afk_time.amxx running [ 10] [182] Damager RBS 17.12.22 SKAJIbnEJIb damager_rbs.amx running [ 11] [182] Kill Assist RBS 17.10.30 Digi & SKAJIbnEJ killassist_rbs. running [ 12] Maps Menu 17.10.30 AMXX Dev Team & mapsmenu_rbs.am running [ 13] [182] Stats Configurat 17.10.30 SKAJIbnEJIb & AM statscfg_rbs.am running [ 14] [182] StatsX RBS 17.10.31 SKAJIbnEJIb & AM statsx_rbs.amxx running [ 15] Parachute for ALL 2.0 Leo_[BH] parachute_all.a running [ 16] DemoRecoder 1.1 neygomon amx_demorec.amx running [ 17] [182] High Ping Kicker 17.08.11 SKAJIbnEJIb hpk_rbs.amxx running [ 18] NextMap 15.07.15 SKAJIbnEJIb & AM nextmap.amxx running [ 19] TimeLeft 15.07.15 SKAJIbnEJIb & AM timeleft.amxx running [ 20] [182] Ultimate Gag 17.12.22BE SKAJIbnEJIb ultimate_gag.am running [ 21] Reset_Score 1.0 CyX Resetscore.amxx running [ 22] [182] No Team Flash 17.10.30 SKAJIbnEJIb NoTeamFlash.amx running [ 23] Anti Flood 1.8.2 AMXX Dev Team antiflood.amxx running [ 24] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running [ 25] Admin Help 1.8.2 AMXX Dev Team adminhelp.amxx running [ 26] Slots Reservation 1.8.2 AMXX Dev Team adminslots.amxx running [ 27] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running [ 28] Admin Chat 1.8.M AMXX Dev Team adminchat.amxx running [29] Commands Menu 1.8.2 AMXX Dev Team cmdmenu.amxx running [ 30] Info. Messages 1.8.2 AMXX Dev Team imessage.amxx running [ 31] CS Misc. Stats 1.8.2 AMXX Dev Team miscstats.amxx running [ 32] Multi-Lingual System 1.8.2 AMXX Dev Team multilingual.am running [ 33] Pause Plugins 1.8.2 AMXX Dev Team pausecfg.amxx running [ 34] Players Menu 1.8.M AMXX Dev Team plmenu.amxx running [ 35] MapChooser RBS 15.07.15 SKAJIbnEJIb & UF mapchooser_rbs. running [ 36] Restrict Weapons 1.8.2 AMXX Dev Team restmenu.amxx running [ 37] CS Stats Logging 1.8.2 AMXX Dev Team stats_logging.a running [ 38] Plugin Menu 1.8.2 AMXX Dev Team pluginmenu.amxx running [ 39] Admin ESP 1.5b_mini KoST admin_esp_mini. running [ 40] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running [ 41] VIP 1.5 by4udilo admin_vip_.amxx running [ 42 Block Change Name 1.0 DJ_WEST block_ChangeNam running 42 plugins, 42 running
C++
- Исходный код
-
#include <amxmodx> enum _:DATA { Name[64], Cmd[32], Flags } #define ADMIN_LOADER // Выводить срок до конца админки с Admin Loader by Neugomon new g_szDefaultItems[][DATA] = // Стандартные пункты в меню | { "название пункта", "команда", "флаг доступа" } { { "Меню Киков", "amx_kickmenu", ADMIN_KICK }, { "Меню Банов", "amx_banmenu", ADMIN_BAN }, { "\yУдарить\w/\rУбить игрока", "amx_slapmenu", ADMIN_SLAY }, { "\yСменить Команду", "amx_teammenu", ADMIN_KICK }, { "\yСменить карту", "amx_mapmenu", ADMIN_MAP }, { "\yГолосование за карту", "amx_votemapmenu", ADMIN_VOTE }, { "\rРазбанить игрока", "fb_unban", ADMIN_BAN }, { "Заткнуть игрока", "amx_gagmenu", ADMIN_LEVEL_D }, { "\yУправление плагинами", "amx_pausecfgmenu", ADMIN_CFG }, { "\yНастройка статистики", "amx_statscfgmenu", ADMIN_CFG }, { "\yЗапрет оружия", "amx_restmenu", ADMIN_CFG } } new g_iNumItems; new g_szMenuData[128][DATA]; new g_iMenuPage[33]; #if defined ADMIN_LOADER native admin_expired(index); #endif public plugin_init() { register_plugin("Menus Front-End", "1.3", "neugomon"); register_clcmd("amxmodmenu", "clcmdAdminMenu", ADMIN_MENU); register_srvcmd("amx_addmenuitem", "SrvAddMenuItems"); register_menucmd(register_menuid("AMX Menu"), 1023, "amxx_handler"); MenuDefaultLoad(); } public clcmdAdminMenu(id, flags) { if(get_user_flags(id) & flags) { g_iMenuPage[id] = 0; BuildMenu(id, g_iMenuPage[id]); } else console_print(id, "* Вы не имеете доступа к этой команде"); return PLUGIN_HANDLED; } public SrvAddMenuItems() { if(read_argc() >= 3) { new ItemName[64], ItemCmd[32], ItemFlags[30]; read_argv(1, ItemName, charsmax(ItemName)); read_argv(2, ItemCmd, charsmax(ItemCmd)); read_argv(3, ItemFlags, charsmax(ItemFlags)); copy(g_szMenuData[g_iNumItems][Name], charsmax(g_szMenuData[][Name]), ItemName); copy(g_szMenuData[g_iNumItems][Cmd], charsmax(g_szMenuData[][Cmd]), ItemCmd); g_szMenuData[g_iNumItems][Flags] = read_flags(ItemFlags); g_iNumItems++; } else server_print("[Menus Front-End by Neugomon] Item not added! Syntax: ^"Item name^" ^"Item command^" ^"Item access^""); return PLUGIN_HANDLED; } MenuDefaultLoad() { for(new i; i < sizeof g_szDefaultItems; i++) { copy(g_szMenuData[g_iNumItems][Name], charsmax(g_szMenuData[][Name]), g_szDefaultItems[i][Name]); copy(g_szMenuData[g_iNumItems][Cmd], charsmax(g_szMenuData[][Cmd]), g_szDefaultItems[i][Cmd]); g_szMenuData[g_iNumItems][Flags] = g_szDefaultItems[i][Flags]; g_iNumItems++; } } BuildMenu(id, pos) { new szMenu[512]; new len new start = pos * 8; new end = start + 8; new keys = MENU_KEY_0; if(start >= g_iNumItems) start = pos = g_iMenuPage[id] = 0; if(g_iNumItems == 9 || end > g_iNumItems) end = g_iNumItems; #if defined ADMIN_LOADER new exp = admin_expired(id); if(exp > 0) { new systime = get_systime(); if(exp - systime > 0) { if((exp - systime) / 86400 > 0) len = formatex(szMenu, charsmax(szMenu), "\rAmxModMenu^n\wОсталось \r%d \wдней^n^n", ((exp - systime) / 86400)); else len = formatex(szMenu, charsmax(szMenu), "\rAmxModMenu^n\rПоследний \wдень^n^n"); } } else if(exp == 0) len = formatex(szMenu, charsmax(szMenu), "\rAmxModMenu^n\wОсталось [\rНавсегда\w]^n^n"); #else len = formatex(szMenu, charsmax(szMenu), "\rAmxModMenu^n\wВыберите действие^n^n"); #endif for(new i = start, flags = get_user_flags(id), a; i < end; i++) { if(flags & g_szMenuData[i][Flags]) { keys |= (1 << a); len += formatex(szMenu[len], charsmax(szMenu) - len, "\r%d. \w%s^n", ++a, g_szMenuData[i][Name]); } else len += formatex(szMenu[len], charsmax(szMenu) - len, "\r%d. \d%s^n", ++a, g_szMenuData[i][Name]); } if(end != g_iNumItems) { formatex(szMenu[len], charsmax(szMenu) - len, "^n\r9. \yДалее^n\r0. \r%s", pos ? "Назад" : "Выход"); keys |= MENU_KEY_9; } else formatex(szMenu[len], charsmax(szMenu) - len, "^n\r0. \r%s", pos ? "Назад" : "Выход"); return show_menu(id, keys, szMenu, -1, "AMX Menu"); } public amxx_handler(id, key) { switch(key) { case 8: BuildMenu(id, ++g_iMenuPage[id]); case 9: if(g_iMenuPage[id]) BuildMenu(id, --g_iMenuPage[id]); default:client_cmd(id, g_szMenuData[g_iMenuPage[id] * 8 + key][Cmd]); } return PLUGIN_HANDLED; }
C++
Здравствуйте почему то не работает плагин,
В этой теме было размещено решение! Перейти к решению.
Последнее редактирование модератором: