При смене карты сервер падает

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
51
Реакции
9
Основная информация

Проблема: При смене карты сервер падает

Ошибка:
Ошибок в логах нет.
Дополнительная информация

Amx Mod X: ReAMXX

Билд:
Код:
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.3.0.592-dev
Build date: 11:22:29 Aug 24 2017 (1230)
Build from: https://github.com/dreamstalker/rehlds/commit/4246a44


ReGamedll:
Код:
ReGameDLL version: 5.3.0.221-dev
Build date: 17:13:45 Aug 19 2017
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/462dc99


Список модулей:
PHP:
ReAimDetector           0.1.7       ReHLDS Team          running
hackdetector 0.15.328.l AGHL.RU Dev Team running
ReAPI 5.1.0.112- Asmodai & s1lent running
MySQL 1.8.3-Re AMX Mod X Dev Team running
FakeMeta 1.8.3-Re AMX Mod X Dev Team running
Engine 1.8.3-Re AMX Mod X Dev Team running
Ham Sandwich 1.8.3-Re AMX Mod X Dev Team running
CStrike 1.8.3-Re AMX Mod X Dev Team running
Fun 1.8.3-Re AMX Mod X Dev Team running


Список плагинов:
HTML:
[  1] Admin Loader            2.9         neygomon          admin_loader.am  running
[ 2] Lite Bans 1.3 neugomon lite_bans.amxx running
[ 3] ReAimDetector API 0.1.8 ReHLDS Team reaimdetector.a running
[ 4] Admin Commands 1.8.3-Re AMXX Dev Team admincmd.amxx running
[ 5] Menus Front-End 1.5 untest neugomon menufront_end.a running
[ 6] Commands Menu 1.8.3-Re AMXX Dev Team cmdmenu.amxx running
[ 7] Players Menu 1.7 neugomon players_menu.am running
[ 8] Lite NightMode 1.0.6 neygomon lite_nightmode. running
[ 9] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 10] Admin Votes 1.8.3-Re AMXX Dev Team adminvote.amxx running
[ 11] Advanced MapChooser 1.1.0 neygomon map_chooser.amx running
[ 12] unknown unknown unknown adminfreelook.a running
[ 13] Advanced Gag 1.9.0 neygomon amx_gag.amxx running
[ 14] Admin ESP 0.3 unnamed & miRror admin_esp.amxx running
[ 15] [ReAPI] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 16] DemoRecoder 1.1 neygomon amx_demorec.amx running
[ 17] Best Damage 0.0.4 Vaqtincha bestdamage.amxx running
[ 18] DHUD_Adverts_Deads 1.3.1 pUzzlik dhud_message_de running
[ 19] [ReAPI] GameName Chang 1.0 neugomon gamename_change running
[ 20] Mode 2x2 2.5re s1lent mode.amxx running
[ 21] Ping Control 1.31 neygomon ping_control.am running
[ 22] [ReAPI] ResetScore 1.0 Phantom resetscore.amxx running
[ 23] Players MySQL Stats 1.2 neugomon players_mysql_s running
[ 24] VIPka 1.34 neygomon vip_system.amxx running
[ 25] Bonus For First Kill 1.0 neygomon bonus_fkill.amx running
[ 26] [Reapi] Block Advert 1.4 neygomon block_advert.am running
[ 27] Steam Bonus 1.9b neygomon and Aci Steam_Bonus.amx running
[ 28] Advert Messages 1.22 neygomon adverts.amxx running
[ 29] Weapon Restrict 2.1 s1lent & neugomo weaponrest.amxx running
[ 30] NO_FITH_SOUND 1.1w perf no_fith_sound.a running
[ 31] Lite Translit 2.8 neygomon lite_translit.a running
31 plugins, 31 running


Список метамодулей:
PHP:
[ 1] Reunion          RUN   -    reunion_mm_i386.  v0.1.75   ini   Start Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386. v1.8.3-R ini Start ANY
[ 3] VoiceTranscoder RUN - VoiceTranscoder. v2017RC3 ini ANY ANY
[ 4] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 5] Rechecker RUN - rechecker_mm_i38 v2.3 ini Chlvl ANY
[ 6] ReAuthCheck RUN - reauthcheck_mm_i v0.1.6 ini Start Never
[ 7] WHBlocker RUN - whblocker_mm_i38 v1.5.692 ini Chlvl ANY
[ 8] ReAimDetector RUN - reaimdetector_am v0.1.7 pl2 ANY Never
[ 9] hackdetector RUN - hackdetector_amx v0.15.32 pl2 ANY ANY
[10] ReAPI RUN - reapi_amxx_i386. v5.1.0.1 pl2 ANY Never
[11] MySQL RUN - mysql_amxx_i386. v1.8.3-R pl2 ANY ANY
[12] FakeMeta RUN - fakemeta_amxx_i3 v1.8.3-R pl2 ANY ANY
[13] Engine RUN - engine_amxx_i386 v1.8.3-R pl2 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx v1.8.3-R pl2 ANY ANY
[15] CStrike RUN - cstrike_amxx_i38 v1.8.3-R pl2 ANY ANY
[16] Fun RUN - fun_amxx_i386.so v1.8.3-R pl2 ANY ANY


Исходник:
Код:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

// #### Начало Конфигурационные defines ####
#define CHATTAG "^3[^4Steam Bonus^3]^3"
#define ADM_FLAG ADMIN_LEVEL_H //Флаг админа, которого игнорируем
#define MIN_MONEY 100
#define MAX_MONEY 600
#define MIN_HP 1
#define MAX_HP 10
#define STEAMBONUSROUND 3
//#define OPENMENUSOUND
// #### Конец Конфигурационные defines ####

new g_roundCount;

public plugin_init()
{
new sPref[][] = {"awp_", "aim_", "35hp", "fy_"};
new map[32]; get_mapname(map, charsmax(map));
for(new i; i < sizeof sPref; i++)
{
if(containi(map, sPref) != -1)
{
pause("ad");
return;
}
}

register_plugin("Steam Bonus", "1.9b", "neygomon and Acid.Sonic")

register_event("TextMsg", "eRestart", "a", "2&#Game_C", "2&#Game_w");
register_event("HLTV","eRoundStart","a","1=0","2=0");

RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1);

register_menucmd(register_menuid("Steam Bonus Menu"), MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4, "SteamBonus");
}

public eRestart(id)
{
g_roundCount = 0;

show_menu(id, 0, "^n", 1)
}

public eRoundStart(id)
{
g_roundCount++;
}

public Player_Spawn(id)
{
if(g_roundCount < STEAMBONUSROUND)
return 0;

return SteamBonusMenu(id);
}

public SteamBonusMenu(id)
{
if(!is_user_steam(id) || (get_user_flags(id) & ADMIN_IMMUNITY)) return 0;

#if defined OPENMENUSOUND
static OpenMenuSound[] = "buttons/blip2";
client_cmd( id, "spk ^"%s^"", OpenMenuSound );
#endif

static szMenu[512], iLen, iKey, Name[32];
get_user_name(id, Name, charsmax(Name))

iKey = MENU_KEY_5|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4;
iLen = formatex(szMenu, 511, "\d[\rSteam Bonus Menu\d]^n\d[\rHello\r: \y%s\d]^n^n\r[\y1\r]\w Деньги^n\r[\y2\r]\w Набор гранат^n\r[\y3\r]\wДобавить \rHP \d[\wДо \r5P\d]^n^n^n", Name);

formatex(szMenu[iLen], 511 - iLen, "\r[\y4\r] [\yОтказаться от бонусов\r]");

return show_menu(id, iKey, szMenu, 10, "Steam Bonus Menu");
}

public SteamBonus(id, iKey)
{
switch(iKey)
{
case 0:
{
new money = cs_get_user_money(id);
new rand_money = random_num(MIN_MONEY, MAX_MONEY);

if(money < 16000 && money <= (money + rand_money)) {
cs_set_user_money(id, money + rand_money);
ChatColor(id, "%s Вы получили бонус деньги за ^4Steam ^3в размере ^4%d$", CHATTAG, rand_money);
}
else if(money < 16000) {
cs_set_user_money(id, 16000);
ChatColor(id, "%s Вы получили бонус деньги за ^4Steam ^3в размере ^4%d$", CHATTAG, rand_money);
}
else ChatColor(id, "%s У вас и так достаточно ^4Денег!", CHATTAG, rand_money);
}
case 1:
{
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_smokegrenade");
cs_set_user_bpammo(id, CSW_FLASHBANG, 2);
ChatColor(id, "%s Вы получили бонус за ^4Steam ^3Дополнительно ^4Набор гранат", CHATTAG);
}
case 2:
{
new iHealth = random_num(MIN_HP, MAX_HP);
set_user_health(id, get_user_health(id) + iHealth);
ChatColor(id, "%s Вы получили бонус за ^4Steam ^3Дополнительно ^4%dHP", CHATTAG, iHealth);
}
}
return PLUGIN_HANDLED;
}

stock ChatColor(const id, const szMessage[], any:...)
{
static szMsg[190], IdMsg;
vformat(szMsg, charsmax(szMsg), szMessage, 3);

if(!IdMsg) IdMsg = get_user_msgid("SayText");

message_begin(MSG_ONE, IdMsg, .player = id);
write_byte(id);
write_string(szMsg);
message_end();
}

stock bool:is_user_steam(id)
{
static dp_pointer;
if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider")))
{
server_cmd("dp_clientinfo %d", id);
server_exec();
return (get_pcvar_num(dp_pointer) == 2) ? true : false;
}
return false;
}


Комментарий:
При смене карты путем голосования или смены карты напрямую через меню, происходит падение сервера, в виде: 2017-09-03_15-19-21.png
Отключаю данный плагин падений нет.
Необходимость этого плагина обязательна.

Данный плагин, взят с neugomona, обращался туда, но увы, пока до сих пор никто не отреагировал. Возможно, мне здесь помогут, с данной проблемой.
Спасибо.
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
2,143
Реакции
1,225
Помог
44 раз(а)
Pokemoshka, он в описании указал, что ошибок нет.
niiaziev, нужно делать дебаг плагина и смотреть, что в этом плагине вызывает падение сервера.
 
Сообщения
51
Реакции
9
Minni, да верно, дебаг был включен при падении, но в логах почему то ничего нет по данному плагину, из чего можно было бы исходить.
А до того как прописал дебаг, появлялось в логах вот это:
Код:
L 09/03/2017 - 13:56:46: Start of error session.
L 09/03/2017 - 13:56:46: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20170903.log")
L 09/03/2017 - 13:56:46: Invalid CVAR pointer
L 09/03/2017 - 13:56:46: [AMXX] Run time error 10 (plugin "Steam_Bonus.amxx") (native "get_pcvar_num") - debug not enabled!
L 09/03/2017 - 13:56:46: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

После включения дебага, ошибки не появляются в логах (странно) и при смене падает сервер.
 
Сообщения
51
Реакции
9
Minni, могу ошибаться, нужно добавить в inc. ?
Код:
(native "get_pcvar_num")
 
Сообщения
51
Реакции
9
Minni,
Код:
# ========================================================
# REUNION CONFIGURATION
# ========================================================

#
# General rule for modifying this file:
# DONT CHANGE ANYTHING IF YOU DONT KNOW WHAT IT MEANS!
#


# ========================================================
# AUTHID MANAGEMENT
# ========================================================

# ClientID types (for cid_* options)
# 1: Real (or generated by HW) steam (STEAM_xx:xx:xx)
# 2: Real (or generated by HW) valve (VALVE_xx:xx:xx)
# 3: STEAM_ by IP
# 4: VALVE_ by IP
# 5: Deprecated - client will be rejected
# 6: reserved for future use
# 7: HLTV
# 8: STEAM_ID_LAN
# 9: STEAM_ID_PENDING
# 10: VALVE_ID_LAN
# 11: VALVE_ID_PENDING
# 12: STEAM_666:88:666

# Use these options to set authid's for clients

### AUTH CONTROL ###

# For Legit Steam clients (default is real STEAM_xx:xx:xx [1])
cid_Steam = 1

# Client recognized as pending when they sucessfully authorized, but did not get steam id
# REMARK: Actually, it got steamid, but it is useless (STEAM_0:0:0 for example)
# default is STEAM_ID_PENDING [9]
cid_SteamPending = 5

# for HLTV (default is HLTV [7])
cid_HLTV = 5

# for p.47 clients that do not support unique id generation (default is STEAM_ID_LAN [8])
cid_NoSteam47 = 5

# for p.48 clients that do not support unique id generation (default is VALVE_ID_LAN [10])
cid_NoSteam48 = 5

# For players having revEmu ( >= 9.74) on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_RevEmu = 1

# For players having RevEmu 2013 on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_RevEmu2013 = 1

# For players having SteamClient 2009 / revEmu > 9.82 on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_SC2009 = 1

# For players having old revEmu on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_OldRevEmu = 5

# For players having hCupa's SteamEmu on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_SteamEmu = 5

# For players having AVSMP (Cracked Steam) on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_AVSMP = 1

# For SETTI ServerScanner
# default is STEAM_xx:xx:xx generated by IP [3]
cid_Setti = 3

# For SXEI Clients
# default is real STEAM_xx:xx:xx [1]
cid_SXEI = 1

# For players having SmartSteamEmu > 1.2.4 on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_SSE3 = 1


### AUTH SETTINGS ###

# ServerInfoAnswerType (0/1/2)
# Sets server answer type for query requests
# 0 = New style (Source Engine)
# 1 = Old Style (Fix favorites list for p.47 clients)
# 2 = Hybrid mode - Server is visible anywhere, but there are 3 packets generated for every serverinfo request
ServerInfoAnswerType = 2

# EnableSXEIdGeneration (0 / 1)
# Turns on steamid generation based on info sent by sXeI client
# Enable this ONLY if you have sXeI server installed!
EnableSXEIdGeneration = 0

# SC2009_RevCompatMode (0 / 1)
# Enable fix to make steamids generated for SC2009 compatible with revEmu
SC2009_RevCompatMode = 1

# SteamIdHashSalt (string)
# Salt string for SteamIDs hashing. Irreversibly changes SteamIDs. Applies only to SteamIDs generated by emulators.
# Should be more than 16 chars length. If string is empty, hashing is not applied.
SteamIdHashSalt =

# SteamIdHashDProtoCompat (0 / 1)
# Use less reliable method of SteamID hashing from dproto (deprecated).
SteamIdHashDProtoCompat = 0

# EnableGenPrefix2 (0 / 1)
# Enable second prefix (0 or 1) for generated by HW authids. Reduces chance of authid collisions. Works only with configured SteamIdHashSalt.
EnableGenPrefix2 = 1

# FixBuggedQuery (0 / 1)
# Enable fix for clients with bugged serverbrowser. Prevents hanging on connect.
FixBuggedQuery = 1

# HLTVExcept_IP (ip addr)
# HLTV from this IP will be able to join the server even if cid_HLTV is set to 5 (deprecated)
HLTVExcept_IP = 127.0.0.1

# QueryFloodBanTime (1 - 60)
# Ban time in minutes for server query flooding.
QueryFloodBanTime = 10


### AUTHID PREFIXES ###

# IPGen_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by IP
IPGen_Prefix1 = 0

# IPGen_Prefix2 (int)
# STEAM_a:b:c
# second prefix (b) for authids generated by IP
IPGen_Prefix2 = 4

# Native_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by native auth method (Steam)
Native_Prefix1 = 0;

# RevEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by Steamclient 2009
SC2009_Prefix1 = 0;

# RevEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by RevEmu
RevEmu_Prefix1 = 1;

# RevEmu2013_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by RevEmu2013
RevEmu2013_Prefix1 = 1;

# OldRevEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by old RevEmu
OldRevEmu_Prefix1 = 2;

# SteamEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by SteamEmu
SteamEmu_Prefix1 = 3;

# SteamEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for AVSMP Clients (Cracked steam)
AVSMP_Prefix1 = 4;

# Setti_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for Setti server scanner
Setti_Prefix1 = 5;

# SXEI_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for sXeI clients
SXEI_Prefix1 = 6;

# SSE3_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for SSE3
SSE3_Prefix1 = 7;

# Note that banid will use steamid WITHOUT any prefixes!


# ========================================================
# OTHER STUFF
# ========================================================

# LoggingMode:
# 0 = None
# 1 = Console
# 2 = Log Files
# 3 = Both
LoggingMode = 2
 
Сообщения
2,143
Реакции
1,225
Помог
44 раз(а)
niiaziev, попробуй так:

Код:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#define is_user_steam(%0) (REU_GetAuthtype(%0) == CA_TYPE_STEAM)

// #### Начало Конфигурационные defines ####
#define CHATTAG "^3[^4Steam Bonus^3]^3"
#define ADM_FLAG ADMIN_LEVEL_H //Флаг админа, которого игнорируем
#define MIN_MONEY 100
#define MAX_MONEY 600
#define MIN_HP 1
#define MAX_HP 10
#define STEAMBONUSROUND 3
//#define OPENMENUSOUND
// #### Конец Конфигурационные defines ####

new g_roundCount;

public plugin_init()
{
new sPref[][] = {"awp_", "aim_", "35hp", "fy_"};
new map[32]; get_mapname(map, charsmax(map));
for(new i; i < sizeof sPref; i++)
{
if(containi(map, sPref) != -1)
{
pause("ad");
return;
}
}

register_plugin("Steam Bonus", "1.9b", "neygomon and Acid.Sonic")

register_event("TextMsg", "eRestart", "a", "2&#Game_C", "2&#Game_w");
register_event("HLTV","eRoundStart","a","1=0","2=0");

RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1);

register_menucmd(register_menuid("Steam Bonus Menu"), MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4, "SteamBonus");
}

public eRestart(id)
{
g_roundCount = 0;

show_menu(id, 0, "^n", 1)
}

public eRoundStart(id)
{
g_roundCount++;
}

public Player_Spawn(id)
{
if(g_roundCount < STEAMBONUSROUND)
return 0;

return SteamBonusMenu(id);
}

public SteamBonusMenu(id)
{
if(!is_user_steam(id) || (get_user_flags(id) & ADMIN_IMMUNITY)) return 0;

#if defined OPENMENUSOUND
static OpenMenuSound[] = "buttons/blip2";
client_cmd( id, "spk ^"%s^"", OpenMenuSound );
#endif

static szMenu[512], iLen, iKey, Name[32];
get_user_name(id, Name, charsmax(Name))

iKey = MENU_KEY_5|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4;
iLen = formatex(szMenu, 511, "\d[\rSteam Bonus Menu\d]^n\d[\rHello\r: \y%s\d]^n^n\r[\y1\r]\w Деньги^n\r[\y2\r]\w Набор гранат^n\r[\y3\r]\wДобавить \rHP \d[\wДо \r5P\d]^n^n^n", Name);

formatex(szMenu[iLen], 511 - iLen, "\r[\y4\r] [\yОтказаться от бонусов\r]");

return show_menu(id, iKey, szMenu, 10, "Steam Bonus Menu");
}

public SteamBonus(id, iKey)
{
switch(iKey)
{
case 0:
{
new money = cs_get_user_money(id);
new rand_money = random_num(MIN_MONEY, MAX_MONEY);

if(money < 16000 && money <= (money + rand_money)) {
cs_set_user_money(id, money + rand_money);
ChatColor(id, "%s Вы получили бонус деньги за ^4Steam ^3в размере ^4%d$", CHATTAG, rand_money);
}
else if(money < 16000) {
cs_set_user_money(id, 16000);
ChatColor(id, "%s Вы получили бонус деньги за ^4Steam ^3в размере ^4%d$", CHATTAG, rand_money);
}
else ChatColor(id, "%s У вас и так достаточно ^4Денег!", CHATTAG, rand_money);
}
case 1:
{
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_smokegrenade");
cs_set_user_bpammo(id, CSW_FLASHBANG, 2);
ChatColor(id, "%s Вы получили бонус за ^4Steam ^3Дополнительно ^4Набор гранат", CHATTAG);
}
case 2:
{
new iHealth = random_num(MIN_HP, MAX_HP);
set_user_health(id, get_user_health(id) + iHealth);
ChatColor(id, "%s Вы получили бонус за ^4Steam ^3Дополнительно ^4%dHP", CHATTAG, iHealth);
}
}
return PLUGIN_HANDLED;
}

stock ChatColor(const id, const szMessage[], any:...)
{
static szMsg[190], IdMsg;
vformat(szMsg, charsmax(szMsg), szMessage, 3);

if(!IdMsg) IdMsg = get_user_msgid("SayText");

message_begin(MSG_ONE, IdMsg, .player = id);
write_byte(id);
write_string(szMsg);
message_end();
}
 
Сообщения
51
Реакции
9
Minni, подключил, скомпилировал, спасибо. Осталось проверить.
 
Сообщения
2,143
Реакции
1,225
Помог
44 раз(а)
niiaziev, немного позже скину версию без Fun и Cstrike.
 
Сообщения
51
Реакции
9
Minni, буду очень признателен, жду с нетерпением:smile3:
 
Статус
В этой теме нельзя размещать новые ответы.

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

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