Пользователь
- Сообщения
- 5
- Реакции
- 0
- Ошибка
-
L 03/02/2018 - 19:51:41: Start of error session.
L 03/02/2018 - 19:51:41: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20180302.log")
L 03/02/2018 - 19:51:41: [AMXX] Displaying debug trace (plugin "amxmodmenu.amxx", version "3.2")
L 03/02/2018 - 19:51:41: [AMXX] Run time error 4: index out of bounds
L 03/02/2018 - 19:51:41: [AMXX] [0] 3177686b949f206d40635e83ebb3dd2e.sma::open_server_menu (line 91)
L 03/02/2018 - 19:51:41: [AMXX] Displaying debug trace (plugin "amxmodmenu.amxx", version "3.2")
L 03/02/2018 - 19:51:41: [AMXX] Run time error 4: index out of bounds
L 03/02/2018 - 19:51:41: [AMXX] [0] 3177686b949f206d40635e83ebb3dd2e.sma::open_server_menu (line 91)
L 03/02/2018 - 19:51:42: [AMXX] Displaying debug trace (plugin "amxmodmenu.amxx", version "3.2")
L 03/02/2018 - 19:51:42: [AMXX] Run time error 4: index out of bounds
L 03/02/2018 - 19:51:42: [AMXX] [0] 3177686b949f206d40635e83ebb3dd2e.sma::open_server_menu (line 91)
L 03/02/2018 - 19:51:42: [AMXX] Displaying debug trace (plugin "amxmodmenu.amxx", version "3.2")
L 03/02/2018 - 19:51:42: [AMXX] Run time error 4: index out of bounds
L 03/02/2018 - 19:51:42: [AMXX] [0] 3177686b949f206d40635e83ebb3dd2e.sma::open_server_menu (line 91)
L 03/02/2018 - 19:51:43: [AMXX] Displaying debug trace (plugin "amxmodmenu.amxx", version "3.2")
L 03/02/2018 - 19:51:43: [AMXX] Run time error 4: index out of bounds
L 03/02/2018 - 19:51:43: [AMXX] [0] 3177686b949f206d40635e83ebb3dd2e.sma::open_server_menu (line 91)
L 03/02/2018 - 19:51:43: [AMXX] Displaying debug trace (plugin "amxmodmenu.amxx", version "3.2")
- ОС
- 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)
- ReGamedll
-
ReGameDLL version: 5.5.0.290-dev
Build date: 15:17:10 Jan 29 2018
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/ff3891d
- Список метамодулей
-
meta list
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] Reunion RUN - reunion_mm_i386. v0.1.75 ini Start Never
[ 2] ReAuthCheck RUN - reauthcheck_mm_i v0.1.6 ini Start Never
[ 3] VoiceTranscoder RUN - VoiceTranscoder. v2017RC3 ini ANY ANY
[ 4] AMX Mod X RUN - amxmodx_mm_i386. v1.8.3-d ini Start ANY
[ 5] WHBlocker RUN - whblocker_mm_i38 v1.5.695 ini Chlvl ANY
[ 6] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 7] Rechecker RUN - rechecker_mm_i38 v2.5 ini Chlvl ANY
[ 8] ReSRDetector RUN - resrdetector_mm_ v0.1.0 ini Chlvl ANY
[ 9] ReAPI RUN - reapi_amxx_i386. v5.5.0.1 pl4 ANY Never
[10] MySQL RUN - mysql_amxx_i386. v1.8.3-d pl4 ANY ANY
[11] FakeMeta RUN - fakemeta_amxx_i3 v1.8.3-d pl4 ANY ANY
[12] ReAimDetector RUN - reaimdetector_am v0.2.2 pl4 ANY Never
[13] Engine RUN - engine_amxx_i386 v1.8.3-d pl4 ANY ANY
[14] CStrike RUN - cstrike_amxx_i38 v1.8.3-d pl4 ANY ANY
[15] CSX RUN - csx_amxx_i386.so v1.8.3-d pl4 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx v1.8.3-d pl4 ANY ANY
16 plugins, 16 running
- Список плагинов
-
amx_plugins
Currently loaded plugins:
name version author file status
[ 1] Admin Loader 3.1 neygomon admin_loader.am running
[ 2] FreshBans 1.3.8b kanagava fresh_bans.amxx running
[ 3] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a debug
[ 4] Ultimate Chats Control 4.1 neygomon ucc.amxx running
[ 5] UCC Addon: VoteGAG 1.2 neygomon ucc_votegag.amx running
[ 6] Server AMXMODMENU [INI 3.2 Leo_[BH], AcE amxmodmenu.amxx debug
[ 7] [ReAPI] Round Balancer 1.1 neygomon round_balancer. running
[ 8] [ReAPI] Round Info + R 0.0.1 steelzorrr round_info_re.a running
[ 9] Players Menu 17.10.30 AMXX Dev Team & admincmd_rbs.am running
[ 10] Commands Menu 1.8.3-dev+ AMXX Dev Team cmdmenu.amxx running
[ 11] [ReAPI] Custom Models 1.6.1 neugomon custom_models.a running
[ 12] Mode 2x2 2.x.5 s1lent & neugomo mode.amxx running
[ 13] Steam Bonus [Random] 1.0 TBONTB steam_bonus_ran running
[ 14] Restrict Weapons 1.8.3-dev+ AMXX Dev Team restmenu.amxx running
[ 15] [reAPI] Flash Control 1.1 neugomon flash_control.a running
[ 16] Night VIP 0.1 F@nt0M night_vip.amxx running
[ 17] DHUD_Adverts_Deads 1.3.1 pUzzlik dhud_message_de running
[ 18] Hud_info 2.1 h1k3 hud_info.amxx running
[ 19] Ping Control 1.31 neygomon ping2.amxx running
[ 20] Afk Control 0.5.1 neygomon afk_control.amx running
[ 21] [ReAPI] Parachute 1.1 ReHLDS Team parachute.amxx running
[ 22] Advert Messages 1.2.2 neygomon adverts_new.amx running
[ 23] Info. Messages 1.8.3-dev+ AMXX Dev Team imessage.amxx running
[ 24] Russia 2.0 IzI | Bonaqua (R amx_autodemorec running
[ 25] [183] Map Spawns Edito 17.08.27 iG_os & SKAJIbnE mapspawnseditor running
[ 26] Stats Configuration 1.8.3-dev+ AMXX Dev Team statscfg.amxx running
[ 27] AES: StatsX 0.5.8 Vega serfreeman1337/s aes_statsx_cstr running
[ 28] CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sql.am running
[ 29] Advanced Experience Sy 0.5.8 Vega serfreeman1337/s aes_main.amxx running
[ 30] AES: CStrike Addon 0.5.8 Vega serfreeman1337/s aes_exp_cstrike running
[ 31] AES: Informer 0.5.8 Vega serfreeman1337/s aes_informer.am running
[ 32] AES: Admin Tools 0.5.8 Vega serfreeman1337/s aes_exp_editor. running
[ 33] AES: Bonus System 0.5.8 Vega serfreeman1337/s aes_bonus_syste running
[ 34] AES: Bonus CSTRIKE 0.5.8 Vega serfreeman1337/s aes_bonus_cstri running
[ 35] /me and /hp 2.0 VladBrovary sayme.amxx running
[ 36] TOP VIP (Auto Set) 1.0a Leo_[BH] top_vip.amxx running
[ 37] Random Weapons WarmUP 1.6 neugomon random_warmup.a running
[ 38] Lite Translit 2.8 neygomon lite_translit.a running
[ 39] [ReVIP] System Core 2.5 full pUzzlik re_vip_core.amx running
[ 40] [ReVIP] Menu 2.5 full pUzzlik re_vip_menu.amx running
[ 41] [ReVIP] Reset Score 2.5 full pUzzlik re_vip_reset_sc running
[ 42] [ReVIP] Tab Info 2.5 full pUzzlik re_vip_tab_info running
[ 43] [ReVIP] Add HP 2.5 full pUzzlik re_vip_hp_add.a running
[ 44] [ReVIP] Custom Shop 2.5 full pUzzlik re_vip_shop.amx running
[ 45] [ReVIP] Custom Deagle 2.5 full pUzzlik re_vip_custom_d running
[ 46] [ReVIP] Custom AK-47 2.5 full pUzzlik re_vip_custom_a running
[ 47] [ReVIP] Custom M4A1 2.5 full pUzzlik re_vip_custom_m running
[ 48] [ReVIP] Custom AWP 2.5 full pUzzlik re_vip_custom_a running
48 plugins, 48 running
- Исходный код
-
#include <amxmodx>
#define MAX_MENU 35 // Максимальное допустимое число пунктов меню
#define MAX_LENGTH 63 // Максимальный размер одной строки
#define INIFILE "/addons/amxmodx/configs/amxmodmenu/menu.ini" // Файл настройки меню админа!
new MenuItem[MAX_MENU+1][MAX_LENGTH+1], MenuCmd[MAX_MENU+1][MAX_LENGTH+1], lines
#define INICMDFILE "/addons/amxmodx/configs/amxmodmenu/clcmd.ini" // Файл настройки клиентских команд для входа в меню
new MenuClcmd[MAX_MENU+1][MAX_LENGTH+1], cmd_lines
public plugin_precache()
{
register_plugin("Server AMXMODMENU [INI]", "1.0", "Leo_[BH]")
cmd_ini_file()
menu_ini_file()
}
public cmd_ini_file()
{
new cmd_line = 1, cmd_bufferd[256]
new cmd_iFiled = fopen(INICMDFILE,"r")
while(!feof(cmd_iFiled))
{
fgets(cmd_iFiled,cmd_bufferd,255)
trim(cmd_bufferd)
if(cmd_bufferd[0]=='"')
{
parse(cmd_bufferd, MenuClcmd[cmd_line], MAX_LENGTH)
}
else
{
continue
}
cmd_line++
}
cmd_lines = cmd_line
fclose(cmd_iFiled)
}
public menu_ini_file()
{
new line = 1, bufferd[256]
new iFiled = fopen(INIFILE,"r")
while(!feof(iFiled))
{
fgets(iFiled,bufferd,255)
trim(bufferd)
if(bufferd[0]=='"')
{
parse(bufferd, MenuItem[line], MAX_LENGTH, MenuCmd[line], MAX_LENGTH)
}
else
{
continue
}
line++
}
lines = line
fclose(iFiled)
}
new g_Menu_Text
public plugin_init()
{
g_Menu_Text = register_cvar("amxmodmenu_text", "\yМеню для админа \wот \rLeo_[BH]\w")
for(new num = 1; num < cmd_lines; num++)
{
register_clcmd(MenuClcmd[num], "open_admin_menu");
}
}
// // // // // // // // // // // // // // //
public open_admin_menu(id)
{
new g_szTextGL[64]
get_pcvar_string( g_Menu_Text, g_szTextGL, 63 );
new menu = menu_create(g_szTextGL, "handler_menu")
for(new num = 1; num < lines; num++)
{
new Number[4]
formatex(Number, charsmax(Number), "%i", num)
menu_additem(menu, MenuItem[num], Number)
}
menu_setprop(menu, MPROP_NEXTNAME, "Далее")
menu_setprop(menu, MPROP_BACKNAME, "Назад")
menu_setprop(menu, MPROP_EXITNAME, "Выход")
menu_display(id, menu, 0)
return PLUGIN_HANDLED
}
public handler_menu(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[15], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data, 14, iName, 63, callback)
client_cmd(id, MenuCmd[str_to_num(data)])
menu_destroy(menu)
return PLUGIN_HANDLED
}
// // // // // // // // // // // // // // // // // // // //
///////////////////////////////////////////////////////////
// ///
// Автор плагина - Leo_[BH] ///
// http://vk.com/id64427766 ///
// Skype: bcnl_leon ///
// ///
// Другие мои плагины: ///
// http://vk.com/cs_rain ///
// ///
///////////////////////////////////////////////////////////
// // // // // // // // // // // // // // // // // // // //
Помогите решить проблему ребят.
В этой теме было размещено решение! Перейти к решению.