Периодически выдаёт ошибки в меню сервера

Сообщения
460
Реакции
68
Помог
7 раз(а)
Ошибка
L 03/10/2019 - 17:48:45: Start of error session.
L 03/10/2019 - 17:48:45: Info (map "de_dust2_2x2") (file "addons/amxmodx/logs/error_20190310.log")
L 03/10/2019 - 17:48:45: Player 15 is not in game.
L 03/10/2019 - 17:48:45: [AMXX] Displaying debug trace (plugin "server_menu.amxx", version "1.5.0")
L 03/10/2019 - 17:48:45: [AMXX] Run time error 10: native error (native "menu_display")
L 03/10/2019 - 17:48:45: [AMXX] [0] server_menu.sma::player_menu (line 119)
ОС
Windows
Amx Mod X
AMX Mod X 1.9.0.5241 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jan 30 2019 07:09:20
Built from: https://github.com/alliedmodders/amxmodx/commit/21100375
Build ID: 5241:21100375
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7 (cstrike)
ReHLDS version: 3.4.0.668-dev
Build date: 09:47:42 Sep 29 2018 (1631)
Build from: https://github.com/dreamstalker/rehlds/commit/89be216
ReGamedll
ReGameDLL version: 5.7.0.323-dev
Build date: 21:13:23 Feb 25 2019
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/45fbb04
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 15:47:38 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
Список метамодулей
[ 1] VoiceTranscoder  RUN   -    voicetranscoder.dll     v2017RC3        ini  ANY   ANY  
[ 2] Reunion RUN - reunion_mm.dll v0.1.0.133 ini Start Never
[ 3] ReSemiclip RUN - resemiclip_mm.dll v2.3.9 ini Chlvl ANY
[ 4] AMX Mod X RUN - amxmodx_mm.dll v1.9.0.5241 ini Start ANY
[ 5] WHBlocker RUN - whblocker_mm.dll v1.5.696 ini Chlvl ANY
[ 6] Rechecker RUN - rechecker_mm.dll v2.5 ini Chlvl ANY
[ 7] ReAuthCheck RUN - reauthcheck_mm.dll v0.1.6 ini Start Never
[ 8] CStrike RUN - cstrike_amxx.dll v1.9.0.5241 pl4 ANY ANY
[ 9] SQLite RUN - sqlite_amxx.dll v1.9.0.5241 pl4 ANY ANY
[10] ReAPI RUN - reapi_amxx.dll v5.8.0.165-dev pl4 ANY Never
[11] Engine RUN - engine_amxx.dll v1.9.0.5241 pl4 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx.dll v1.9.0.5241 pl4 ANY ANY
[13] ReAimDetector RUN - reaimdetector_amxx.dll v0.2.2 pl4 ANY Never
[14] FakeMeta RUN - fakemeta_amxx.dll v1.9.0.5241 pl4 ANY ANY
14 plugins, 14 running
Список плагинов
[  1] ReAimDetector API       0.2.2       ReHLDS Team       reaimdetector.a  running  
[ 2] Advanced Client Checke 0.3.6 Mistrick cmdchecker.amxx running
[ 3] CSStatsX SQL 0.7.4+1 serfreeman1337 csstatsx_sql.am debug
[ 4] FreshBans 1.3.9b kanagava fresh_bans_139_ running
[ 5] ScreenMaker 1.1 neygomon screen_maker.am running
[ 6] RC BaseChanger 1.0 phe rc_basechanger. stopped
[ 7] ReChecker Logging 1.0 custom rc_logging.amxx running
[ 8] Lite Admin ESP 1.1 neygomon, AcE admin_esp_ace.a running
[ 9] Admin Base 1.9.0.5232 AMXX Dev Team admin.amxx running
[ 10] Ping Control 1.4 neygomon Ping_Control.am running
[ 11] AFK Control ReNew 1.2(a) neygomon afk_control.amx running
[ 12] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 13] Stats Configuration 1.9.0.5232 AMXX Dev Team statscfg.amxx running
[ 14] Advanced Gag 1.9.0 neygomon amx_gag.amxx running
[ 15] Advanced MapChooser 1.4 neygomon map_chooser.amx running
[ 16] [ReAPI] No Team Flash 0.0.2 Vaqtincha no_team_flash.a running
[ 17] Items Restrict 1.0 s1lent items_restrict. running
[ 18] RE Me&HP 1.1 neygomon, AcE re_sayme.amxx debug
[ 19] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 20] Radio Hudmsg Block 1.0 AcE radio_hudmsg_bl running
[ 21] Server Menu 1.5.0 F@nt0M server_menu.amx debug
[ 22] SF Bets 0.1.5 serfreeman1337 sf_bets.amxx running
[ 23] Parachute Lite [ReAPI] 11.0 Leo_[BH] parachute_lite. running
[ 24] Lite C4 Timer 1.0.0 neygomon lite_c4timer.am running
[ 25] DemoRecoder 1.1 neygomon amx_demorec.amx running
[ 26] Rock to Ban 1.02 Safety1st rock2ban.amxx running
[ 27] Players Menu 1.7 neugomon players_menu.am running
[ 28] [ReAPI] Kills Counter 0.3 serfreeman1337 kills_counter.a running
[ 29] Killer ScreenFade 0.0.5 Vaqtincha reapi_killer_sc running
[ 30] BlockNick Spam 1.0 [Re] R BlockNick_Spam. running
[ 31] SF Warn Menu 0.1.4g serfreeman1337 sf_admin_warns. running
[ 32] AES: StatsX Info Rank 0.1 serfreeman1337 aes_statsx_rank running
[ 33] Adverts 1.0 pUzzlik adverts_message running
[ 34] Steam Models 0.1b+mod.l Freedo.m steam_models.am running
[ 35] BunnyHop 1.0 PurposeLess bunnyhop.amxx paused
[ 36] SpecList 1.2a FatalisDK speclist.amxx running
[ 37] Lite Translit 2.8 neygomon lite_translit_c debug
[ 38] V.I.P Custom Weapons 1.0.0 Vaqtincha vip_custom.amxx running
[ 39] V.I.P Custom DEAGLE 1.0.0 Vaqtincha custom_deagle.a running
[ 40] V.I.P Custom M4A1 1.0.0 Vaqtincha custom_m4a1.amx running
[ 41] V.I.P Custom AK-47 1.0.0 Vaqtincha custom_ak47.amx running
[ 42] V.I.P Custom AWP 1.0.0 Vaqtincha custom_awp.amxx running
[ 43] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 44] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 45] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 46] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 47] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 48] AES: Bonus CSTRIKE 0.5.9 [REA serfreeman1337/s aes_bonus_cstri running
48 plugins, 46 running
Автор плагина
F@nt0M
Версия плагина
1.5.0
Исходный код
#pragma semicolon 1

//#define ADMINLOAD
//#define TIMELEFT
//#define ENABLE_CALLFUNC
//#define BIND_MENU
//#define ENABLE_INFO
//#define INFO_FREQ 60.0

#include <amxmodx>

#if defined ADMINLOAD
#include <adminload>
#endif

#if defined TIMELEFT
#include <timeleft>
#endif

#if !defined charsmax
#define charsmax(%1) (sizeof(%1) - 1)
#endif

#if defined ADMINLOAD
new bool:g_AdminLoaded = true;
#endif

new g_ServerName[128];
new g_ServerAddress[32];

new bool:g_Enable = false;
new g_PlayerMenu;
new g_AdminMenu;

public plugin_init()
{
register_plugin("Server Menu", "1.5.0", "F@nt0M");

register_dictionary("server_menu.txt");
register_dictionary("common.txt");
#if defined TIMELEFT
register_dictionary("timeleft_custom.txt");
#endif

register_clcmd("amxmodmenu", "admin_menu", ADMIN_MENU);

register_clcmd("menu", "player_menu");
register_clcmd("say /menu", "player_menu");
register_clcmd("say_team /menu", "player_menu");
register_concmd("nightvision", "player_menu");
}

public plugin_cfg()
{
get_pcvar_string(get_cvar_pointer("hostname"), g_ServerName, 127);
get_user_ip(0, g_ServerAddress, 31);

g_PlayerMenu = menu_create("player_menu", "menu_handler");
configMenu(g_PlayerMenu, false);

g_AdminMenu = menu_create("admin_menu", "menu_handler");
configMenu(g_AdminMenu, false);

if (loadMenu()) {
g_Enable = true;
#if defined ENABLE_INFO
set_task(INFO_FREQ, "task_hudmsg", _, _, _, "b");
#endif
}
}

public plugin_end()
{
menu_destroy(g_PlayerMenu);
menu_destroy(g_AdminMenu);
}

#if defined ADMINLOAD
public plugin_natives()
{
set_native_filter("native_filter");
}

public native_filter(const name[], index, trap)
{
#pragma unused index
if (!strcmp(name, "adminload_get_expired")) {
g_AdminLoaded = trap ? true : false;
}

return trap ? PLUGIN_CONTINUE : PLUGIN_HANDLED;
}
#endif

#if defined BIND_MENU
public client_putinserver(id)
{
if (g_Enable) {
client_cmd(id, "bind ^"F3^" ^"menu^"");
}

if (get_user_flags(id) & ADMIN_MENU) {
client_cmd(id, "bind ^"=^" ^"amxmodmenu^"");
}
}
#endif

#if defined ENABLE_INFO
public task_hudmsg()
{
set_hudmessage(0, 255, 0, -1.0, 0.0, 0, 6.0, 6.0);
show_hudmessage(0, "%L", LANG_SERVER, "SERVER_MENU_HELP");
}
#endif

public player_menu(id)
{
if (g_Enable) {
menu_display(id, g_PlayerMenu, 0);
}

return PLUGIN_HANDLED;
}

public admin_menu(id, level)
{
if (~get_user_flags(id) & level) {
client_print(id, print_console, "You have no right to this command");
return PLUGIN_HANDLED;
}

#if defined ADMINLOAD
if (g_AdminLoaded) {
static expired, title[128];
#if defined TIMELEFT
static timeleft[64];
expired = get_expired_days(id, timeleft, charsmax(timeleft));
#else
expired = get_expired_days(id);
#endif
if (expired > 0) {
#if defined TIMELEFT
formatex(title, 127, "%L^n%L", LANG_SERVER, "SERVER_MENU_ADMIN", LANG_SERVER, "ADMIN_EXPIRED", timeleft);
#else
formatex(title, 127, "%L^n%L", LANG_SERVER, "SERVER_MENU_ADMIN", LANG_SERVER, "ADMIN_EXPIRED_DAYS", (expired / 86400));
#endif
} else{
formatex(title, 127, "%L", LANG_SERVER, "SERVER_MENU_ADMIN");
}

menu_setprop(g_AdminMenu, MPROP_TITLE, title);
}
#endif

menu_display(id, g_AdminMenu, 0);

return PLUGIN_HANDLED;
}

public menu_handler(id, menu, item)
{
if (item == MENU_EXIT) {
return PLUGIN_HANDLED;
}

new access, command[128], title[128], callback;
menu_item_getinfo(menu, item, access, command, charsmax(command), title, charsmax(title), callback);

// log_amx("Player %d, Cmd: ^"%s^"", id, command);

#if defined ENABLE_CALLFUNC
if (contain(command, ":")) {
strtok(command, title, charsmax(title), command, charsmax(command), ':');
callfunc(id, command, title);
} else {
client_cmd(id, command);
}
#else
client_cmd(id, command);
#endif

return PLUGIN_CONTINUE;
}

bool:loadMenu()
{
new configFile[128];
new text[512], title[128], command[128], access_str[10], access;

get_localinfo("amxx_configsdir", configFile, charsmax(configFile));
add(configFile, charsmax(configFile), "/server_menu/server_menu.ini");

if (!file_exists(configFile)) {
log_amx("Could not found config file %s. Menu disable", configFile);
return false;
}

new menuCount = 0;
new bool:playerMenu = true;

new file = fopen(configFile, "r");
if (!file) {
log_amx("Could not open config file %s. Menu disable", configFile);
return false;
}

while (!feof(file)) {
fgets(file, text, charsmax(text));
trim(text);

if (!text[0] || text[0]==';' || (text[0]=='/' && text[1]=='/')) {
continue;
}

if (equali(text, "[PLAYER]")) {
playerMenu = true;
} else if (equali(text, "[ADMIN]")) {
playerMenu = false;
} else {

title[0] = '^0';
command[0] = '^0';
access_str[0] = '^0';

if (parse(text, title, charsmax(title), command, charsmax(command), access_str, charsmax(access_str)) > 1) {
access = access_str[0] ? read_flags(access_str) : 0;

// log_amx("Flags: ^"%s^", Title: ^"%s^", Command: ^"%s^", Access: %d", flags_str, title, command, access_str);

if (playerMenu) {
menu_additem(g_PlayerMenu, title, command, access);
menuCount++;
} else {
menu_additem(g_AdminMenu, title, command, access);
}
}
}
}

fclose(file);

if (menuCount == 0) {
log_amx("Load zero items from config. Menu disable");
return false;

}

log_amx("Load %d items from config. Menu enable", menuCount);
return true;
}

configMenu(menu, bool:adminmenu = false)
{
new text[256];

menu_setprop(menu, MPROP_PERPAGE, 7);

if (adminmenu) {
format(text, charsmax(text), "\y%L", LANG_SERVER, "SERVER_MENU_ADMIN", LANG_SERVER);
} else {
format(text, charsmax(text), "\y%L^n\d%L", LANG_SERVER, "SERVER_MENU_TITLE", g_ServerName, LANG_SERVER, "SERVER_MENU_IP", g_ServerAddress);
}
menu_setprop(menu, MPROP_TITLE, text);

format(text, charsmax(text), "%L", LANG_SERVER, "BACK");
menu_setprop(menu, MPROP_BACKNAME, text);

format(text, charsmax(text), "%L", LANG_SERVER, "MORE");
menu_setprop(menu, MPROP_NEXTNAME, text);

format(text, charsmax(text), "%L", LANG_SERVER, "EXIT");
menu_setprop(menu, MPROP_EXITNAME, text);
}

#if defined ADMINLOAD
#if defined TIMELEFT
stock get_expired_days(id, time[], len = 0)
#else
stock get_expired_days(id)
#endif
{
static expired;
expired = adminload_get_expired(id);

if (expired == 0) {
return 0;
}

expired -= get_systime(0);

#if defined TIMELEFT
static type, status;
new timeleft = timeleft_get_timeleft(expired, TIMELEFT_AUTO, type, status);
timeleft_format_timeleft(timeleft, type, status, time, len);
#endif

return expired;
}
#endif

#if defined ENABLE_CALLFUNC
stock bool:callfunc(id, function[128], plugin[128])
{
format(plugin, charsmax(plugin), "%s.amxx", plugin);

callfunc_begin(function, plugin);
callfunc_push_int(id);
callfunc_end();

return false;
}
#endif
Всем привет форумчане. Периодически вылазит ошибка где-то 1-2 в день. Помогите решить. Спасибо за внимание.

PHP:
L 03/10/2019 - 17:48:45: Start of error session.
L 03/10/2019 - 17:48:45: Info (map "de_dust2_2x2") (file "addons/amxmodx/logs/error_20190310.log")
L 03/10/2019 - 17:48:45: Player 15 is not in game.
L 03/10/2019 - 17:48:45: [AMXX] Displaying debug trace (plugin "server_menu.amxx", version "1.5.0")
L 03/10/2019 - 17:48:45: [AMXX] Run time error 10: native error (native "menu_display")
L 03/10/2019 - 17:48:45: [AMXX]    [0] server_menu.sma::player_menu (line 119)
 
В этой теме было размещено решение! Перейти к решению.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу