Участник
Пользователь
- Сообщения
- 194
- Реакции
- 43
- Помог
- 4 раз(а)
- Ошибка
-
L 06/04/2020 - 16:06:08: Start of error session.
L 06/04/2020 - 16:06:08: Info (map "de_dust2_2x2_lite") (file "addons/amxmodx/logs/error_20200604.log")
L 06/04/2020 - 16:06:08: Player 3 is not in game.
L 06/04/2020 - 16:06:08: [AMXX] Displaying debug trace (plugin "server_menu.amxx", version "1.5.0")
L 06/04/2020 - 16:06:08: [AMXX] Run time error 10: native error (native "menu_display")
L 06/04/2020 - 16:06:08: [AMXX] [0] server_menu.sma::player_menu (line 105)
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5263
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.696-dev
Build date: 18:46:47 May 18 2020 (2228)
Build from: https://github.com/dreamstalker/rehlds/commit/987ee51
- ReGamedll
-
ReGameDLL version: 5.16.0.466-dev
Build date: 10:11:49 May 2 2020
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/4f72525
- Версия Metamod
-
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
- Список метамодулей
-
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 4] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 5] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 6] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5263 ini Start ANY
[ 7] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 8] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 9] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl6 ANY ANY
[10] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl6 ANY Never
[11] ReAPI RUN - reapi_amxx_i386.so v5.12.0.192-dev pl6 ANY Never
[12] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl6 ANY ANY
[13] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl6 ANY ANY
[14] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl6 ANY ANY
[15] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl6 ANY ANY
[16] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl6 ANY ANY
[17] SxGeo RUN - sxgeo_amxx_i386.so v2.2 pl6 ANY Never
[18] gRIP RUN - grip_amxx_i386.so v0.1.5 Beta pl6 ANY ANY
18 plugins, 18 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 2] FreshBans 1.4.3b kanagava fresh_bans.amxx running
[ 3] ScreenMaker 1.1 neygomon screen_maker.am running
[ 4] Ultimate Chats Control 5.2(c) neygomon ucc.amxx running
[ 5] UCC Addon: VoteGAG 1.2 neygomon ucc_votegag.amx running
[ 6] Admin Commands 1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 7] Menus Front-End 1.5 neugomon menufront.amxx running
[ 8] Commands Menu 1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.7 neugomon plmenu.amxx running
[ 10] SF Warn Menu 0.1.4g serfreeman1337 sf_admin_warns. running
[ 11] Lite NightMode 1.1 neygomon lite_nightmode. running
[ 12] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 13] Admin Chat 1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 14] Anti Flood 1.9.0.5263 AMXX Dev Team antiflood.amxx running
[ 15] Admin Votes 1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 16] Night VIP 0.1 maFFyoZZyk night_vip.amxx running
[ 17] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 18] Stats Configuration 1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 19] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 20] Say me and Say hp 1.4 neygomon sayme.amxx running
[ 21] Items Restrict 1.0 ReHLDS Team items_restrict. running
[ 22] Lite Admin ESP 1.1 neygomon, AcE admin_esp.amxx running
[ 23] Advertising Manager 1.0 Javekson advertising_man running
[ 24] AntiFlood Change Name 28.11.2018 sergrib antiflood_chang running
[ 25] AFK Control ReNew 1.3 neygomon afk_control.amx running
[ 26] Auto Team Balance Adva 1.5.1 Radius auto_team_balan running
[ 27] [ReAPI] AWPoff 1.4.3 PAffAEJIkA :3 awp_off.amxx running
[ 28] [BGHL] Banners 1.0 fl0wer banners.amxx running
[ 29] Clan Tag Bonus 1.0 TBONTB clan_tag_bonus. running
[ 30] Custom Smoke 1.09 bionext custom_smoke.am running
[ 31] [ReAPI] KiLL Assist 1.0 PRoSToTeM@ kill_assist_rea running
[ 32] Lite Recoder 1.0.1 neygomon lite_recoder.am running
[ 33] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 34] [ReAPI] No Team Flash 0.0.3 Vaqtincha no_team_flash.a running
[ 35] Mode 2x2 2.5re s1lent mode.amxx running
[ 36] Last Maps 1.1 sweden last_maps.amxx running
[ 37] [ReAPI] Parachute 1.1 ReHLDS Team parachute.amxx running
[ 38] Ping Control 1.31f neygomon+wopox ping_control.am running
[ 39] [ReAPI] Block 'Fire in 0.0.1 sergrib reapi_block_FIT running
[ 40] [ReAPI] Slay Loosers 1.1 neugomon reapi_slayloose running
[ 41] Reset Score 0.0.2f wopox1337 ResetScore.amxx running
[ 42] Server Menu 1.5.0 F@nt0M server_menu.amx debug
[ 43] Take Damage 1.0 Javekson take_damage.amx running
[ 44] TOP VIP (Auto Set) 2.0 Leo_[BH] & maFFy top_vip.amxx running
[ 45] [ReAPI] Random Weapons 2.4.9+1 neugomon/h1k3 warmup.amxx running
[ 46] Chat Manager 1.1.2-16 Mistrick chatmanager.amx debug
[ 47] [UAC] Core 0.1.0-manu GM-X Team uac_core.amxx running
[ 48] [UAC] GM-X Loader 0.1.0-manu GM-X Team uac_gmx_loader. running
[ 49] [UAC] Logger 0.1.0-manu GM-X Team uac_logger.amxx running
[ 50] [UAC] Commands 0.1.0-manu GM-X Team uac_commands.am running
[ 51] GM-X Core 0.1.83-alp GM-X Team gmx.amxx debug
[ 52] GM-X Cache 0.1.83-alp GM-X Team gmx_cache.amxx running
[ 53] GM-X Access 0.1.83-alp GM-X Team gmx_access.amxx running
[ 54] Map Manager: Core 3.0.7 Mistrick map_manager_cor running
[ 55] Map Manager: Scheduler 0.1.5 Mistrick map_manager_sch running
[ 56] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[ 57] Map Manager: Nominatio 0.1.2 Mistrick map_manager_nom running
[ 58] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 59] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 60] Map Manager: Effects 0.0.9 Mistrick map_manager_eff running
[ 61] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 62] [ReVIP] System Core 2.5 full pUzzlik re_vip_core.amx running
[ 63] [ReVIP] Menu 2.5 full pUzzlik re_vip_menu.amx running
[ 64] [ReAPI] Connected Info 2.5 pUzzlik re_vip_connect_ debug
[ 65] [ReVIP] Tab Info 2.5 full pUzzlik re_vip_tab_info running
[ 66] [ReVIP] Custom Shop 2.5 full pUzzlik re_vip_shop.amx running
[ 67] [ReVIP] Custom AK-47 2.5 full pUzzlik re_vip_custom_a running
[ 68] [ReVIP] Custom M4A1 2.5 full pUzzlik re_vip_custom_m running
[ 69] [ReVIP] Custom AWP 2.5 full pUzzlik re_vip_custom_a running
[ 70] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 71] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 72] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 73] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 74] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 75] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
75 plugins, 75 running
- Автор плагина
- F@nt0M
- Версия плагина
- 1.5.0
- Исходный код
-
#pragma semicolon 1
//#define ADMINLOAD
//#define TIMELEFT
//#define ENABLE_CALLFUNC
//#define ENABLE_INFO
//#define INFO_FREQ 30.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 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, "Вы не имеете права на эту команду");
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 {
execCmd(id, command);
}
#else
execCmd(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
execCmd(const id, const cmd[]) {
#define MAX_ARG_LENGTH 64
new args[3][MAX_ARG_LENGTH];
for (new i = 0, pos = 0; i < 3; i++) {
arrayset(args[i], 0, MAX_ARG_LENGTH);
if (pos >= 0) {
pos = argparse(cmd, pos, args[i], MAX_ARG_LENGTH - 1);
}
}
amxclient_cmd(id, args[0], args[1], args[2]);
}
периодически сыпет ошибки и у не которых игроков не работает меню сервера или оно не появляется или кнопки не работают
теме плагина видел
и вместо
client_cmd(id, command); -> execCmd(id, command);
писал вроде как фикс но иногда меню не работает как и выше в теме я отписал
теме плагина видел
Код:
execCmd(const id, const cmd[]) {
#define MAX_ARG_LENGTH 64
new args[3][MAX_ARG_LENGTH];
for (new i = 0, pos = 0; i < 3; i++) {
arrayset(args[i], 0, MAX_ARG_LENGTH);
if (pos >= 0) {
pos = argparse(cmd, pos, args[i], MAX_ARG_LENGTH - 1);
}
}
amxclient_cmd(id, args[0], args[1], args[2]);
}
client_cmd(id, command); -> execCmd(id, command);
писал вроде как фикс но иногда меню не работает как и выше в теме я отписал
Вложения
-
6.8 KB Просмотры: 250