sayme

Сообщения
12
Реакции
-1
Ошибка
L 05/11/2018 - 17:50:44: [AMXX] Run time error 4 (plugin "sayme.amxx") - debug not enabled!
L 05/11/2018 - 17:50:44: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
ОС
Linux
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.641-dev
Build date: 16:11:38 Apr 6 2018 (1455)
Build from: https://github.com/dreamstalker/rehlds/commit/ce163a3
ReGamedll
ReGameDLL version: 5.7.0.301-dev
Build date: 00:28:14 Apr 9 2018
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/fe0ea9a
Список метамодулей
description      stat pend  file                        vers            src  load  unload
[ 1] AMX Mod X RUN - amxmodx_mm_i386.so v1.8.2 ini Start ANY
[ 2] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 3] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 6] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.695 ini Chlvl ANY
[ 8] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 9] Fun RUN - fun_amxx_i386.so v1.8.2 pl1 ANY ANY
[10] CStrike RUN - cstrike_amxx_i386.so v1.8.2 pl1 ANY ANY
[11] ReAPI RUN - reapi_amxx_i386.so v5.6.0.156-dev pl1 ANY Never
[12] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl1 ANY Never
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.8.2 pl1 ANY ANY
[14] MySQL RUN - mysql_amxx_i386.so v1.8.2 pl1 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.8.2 pl1 ANY ANY
[16] Engine RUN - engine_amxx_i386.so v1.8.2 pl1 ANY ANY
16 plugins, 16 running
Список плагинов
name                    version     author            file             status   
[ 1] FreshBans 1.3.9b kanagava fresh_bans_139_ running
[ 2] Admin Load 3.9.2 Dev F@nt0M adminload.amxx running
[ 3] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 4] CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sql.am running
[ 5] CSXSQL: Onlinetime Awa 0.2 serfreeman1337 csstatsx_playti running
[ 6] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 7] Slots Reservation 1.8.2 AMXX Dev Team adminslots.amxx running
[ 8] Multi-Lingual System 1.8.2 AMXX Dev Team multilingual.am running
[ 9] Menus Front-End 1.5 neugomon menufront_end.a running
[ 10] Commands Menu 1.8.2 AMXX Dev Team cmdmenu.amxx running
[ 11] New Kick Menu 1.4.2 Radius newkickmenu.amx running
[ 12] Players Menu 1.7 neugomon players_menu.am running
[ 13] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 14] Map Manager: Core 3.0.0-Beta Mistrick map_manager_cor running
[ 15] Map Manager: Scheduler 0.0.8 Mistrick map_manager_sch running
[ 16] Map Manager: Rtv 0.0.3 Mistrick map_manager_rtv running
[ 17] Map Manager: Nominatio 0.0.5 Mistrick map_manager_nom running
[ 18] Map Manager: BlockList 0.0.2 Mistrick map_manager_blo running
[ 19] Map Manager: Online so 0.0.1 Mistrick map_manager_onl running
[ 20] Map Manager: Effects 0.0.6 Mistrick map_manager_eff running
[ 21] Map Manager: Informer 0.0.4 Mistrick map_manager_inf running
[ 22] Map Manager: Advanced 0.0.2 Mistrick map_manager_adv running
[ 23] Admin Chat 1.8.2 AMXX Dev Team adminchat.amxx running
[ 24] Anti Flood 1.8.2 AMXX Dev Team antiflood.amxx running
[ 25] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running
[ 26] Pause Plugins 1.8.2 AMXX Dev Team pausecfg.amxx running
[ 27] Stats Configuration 1.8.2 AMXX Dev Team statscfg.amxx running
[ 28] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 29] DemoRecoder 1.2 neygomon amx_demorec.amx running
[ 30] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 31] Gag Me 2.3.4 Radius gag_me.amxx running
[ 32] ReAPI AWP Limitter 2.0 neygomon reapi_awp_limit running
[ 33] Say me and Say hp 1.4 neygomon sayme.amxx running
[ 34] Auto Team Balance Adva 1.5.1 Radius auto_team_balan running
[ 35] [reAPI] Flash Control 1.1 neugomon flash_control.a running
[ 36] FM ResetScore 0.1 neygomon fm_rs.amxx running
[ 37] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 38] Advanced Kill Assists 0.9 Spection next21_kill_ass running
[ 39] Block TextMsg 1.0 AcE block_textmsg.a running
[ 40] Pistols WarmUP 1.0 ill pistols_warmup. running
[ 41] Mode 2x2 2.5re s1lent mode.amxx running
[ 42] [182] Damager RBS 17.12.22 SKAJIbnEJIb damager_rbs.amx running
[ 43] [182] Ultimate Flags 18.03.24 SKAJIbnEJIb ultimate_flags. running
[ 44] [182] Ultimate Weapons 17.08.28 SKAJIbnEJIb ultimate_weapon running
[ 45] [182] VIP RBS 18.03.24 SKAJIbnEJIb vip_rbs.amxx running
[ 46] [182] Ultimate Models 17.08.28 SKAJIbnEJIb ultimate_models running
[ 47] Lite Translit 2.8 neygomon lite_translit_c running
[ 48] Reklama 06.04.18 mx?! reklama.amxx running
[ 49] GameName Changer 1.0 neugomon gamename_change running
[ 50] C4 Timer 0.1 Lightman bombtimer.amxx running
[ 51] [ReAPI] Parachute 1.1 ReHLDS Team parachute.amxx running
[ 52] Advanced Experience Sy 0.5 Vega serfreeman1337 aes_main.amxx running
[ 53] Info Rank 0.4.5 ConnorMcLeod info_rank.amxx running
[ 54] SF Bets 0.1.5 serfreeman1337 sf_bets.amxx running
[ 55] AES: CStrike Addon 0.5 Vega serfreeman1337 aes_exp_cstrike running
[ 56] AES: Informer 0.5 Vega serfreeman1337 aes_informer.am running
[ 57] AES: Admin Tools 0.5 Vega serfreeman1337 aes_exp_editor. running
[ 58] AES: Bonus System 0.5 Vega serfreeman1337 aes_bonus_syste running
[ 59] AES: Bonus CSTRIKE 0.5 Vega serfreeman1337 aes_bonus_cstri running
[ 60] AES: StatsX 0.5 Vega serfreeman1337 aes_statsx_cstr running
[ 61] AES: Status Info 0.1 serfreeman1337 aes_status_info running
61 plugins, 61 running
Исходный код
/*
Credits:
* Radius - помощь с кодом. Подсказки по оптимизации.
*/

#include <amxmodx>
#include <engine>
#include <hamsandwich>

#define NOT_ALIVE // Использовать /me может только МЕРТВЫЙ игрок. Чтобы разрешить всем пользоваться, закомментируйте;)
#define INFO_KILLER // Информация /me и /hp после смерти игрока
//#define NO_ROUND // Поддержка бесконечного раунда.

#define msgSayText 76
#define maxPlayers 32

#if AMXX_VERSION_NUM == 183
enum _:info
{
damage,
lasthit,
killerid,
killername[32],
Float:hpkiller,
Float:apkiller,
Float:distance
}
new g_iPlayerData[maxPlayers+1][info];
#else
enum _:info
{
damage,
lasthit,
killerid,
killername[32]
}
new g_iPlayerData[maxPlayers+1][info];
new Float:g_fHpKiller[maxPlayers+1];
new Float:g_fApKiller[maxPlayers+1];
new Float:g_fDistance[maxPlayers+1];
#endif
new const g_szHitPlaces[][] = { "-", "голову", "грудь", "живот", "левую руку", "правую руку", "левую ногу", "правую ногу" };

public plugin_init()
{
register_plugin("Say me and Say hp", "1.4", "neygomon");

register_event("Damage", "eventDamage", "b", "2!0");
#if defined NO_ROUND
RegisterHam(Ham_Spawn, "player", "fwdPlayerSpawn", true);
#else
register_event("HLTV", "eventRoundStart", "a", "1=0", "2=0");
#endif
RegisterHam(Ham_Killed, "player", "fwdPlayerKilled", true);

register_clcmd("say /me", "ClCmdSayMe");
register_clcmd("say_team /me", "ClCmdSayMe");
register_clcmd("say /hp", "ClCmdSayHp");
register_clcmd("say_team /hp", "ClCmdSayHp");
}

public client_putinserver(id)
{
arrayset(g_iPlayerData[id], 0, info);
#if AMXX_VERSION_NUM < 183
g_fHpKiller[id] = g_fApKiller[id] = g_fDistance[id] = 0.0;
#endif
}
#if defined NO_ROUND
public fwdPlayerSpawn(const id)
{
arrayset(g_iPlayerData[id], 0, info);
#if AMXX_VERSION_NUM < 183
g_fHpKiller[id] = g_fApKiller[id] = g_fDistance[id] = 0.0;
#endif
}
#else
public eventRoundStart()
{
for(new i = 1; i <= maxPlayers; i++)
{
arrayset(g_iPlayerData[i], 0, info);
#if AMXX_VERSION_NUM < 183
g_fHpKiller[i] = g_fApKiller[i] = g_fDistance[i] = 0.0;
#endif
}
}
#endif
public eventDamage(id)
{
static attacker, hit; attacker = get_user_attacker(id, 0, hit);
if(id != attacker && 1 <= attacker <= maxPlayers)
{
g_iPlayerData[attacker][damage] += read_data(2);
g_iPlayerData[attacker][lasthit] = hit;
}
}

public fwdPlayerKilled(pVictim, pKiller)
{
if(pVictim == pKiller || !is_user_connected(pKiller) || !is_user_connected(pVictim))
return;
#if AMXX_VERSION_NUM == 183
g_iPlayerData[pVictim][hpkiller] = entity_get_float(pKiller, EV_FL_health);
g_iPlayerData[pVictim][apkiller] = entity_get_float(pKiller, EV_FL_armorvalue);
g_iPlayerData[pVictim][distance] = entity_range(pKiller, pVictim) / 32.00;
#else
g_fHpKiller[pVictim] = entity_get_float(pKiller, EV_FL_health);
g_fApKiller[pVictim] = entity_get_float(pKiller, EV_FL_armorvalue);
g_fDistance[pVictim] = entity_range(pKiller, pVictim) / 32.00;
#endif
g_iPlayerData[pVictim][killerid] = pKiller;
get_user_name(pKiller, g_iPlayerData[pVictim][killername], charsmax(g_iPlayerData[][killername]));
#if defined INFO_KILLER
ClCmdSayHp(pVictim);
ClCmdSayMe(pVictim);
#endif
}

public ClCmdSayMe(id)
{
#if defined NOT_ALIVE
if(is_user_alive(id))
{
ChatColor(id, id, "^1[^3SayMe^1] ^4Данная функция доступна ^3только ^4мертвым игрокам!");
return PLUGIN_HANDLED;
}
#endif
switch(g_iPlayerData[id][damage])
{
case 0: ChatColor(id, id, "^1[^3SayMe^1] ^4Вы ни в кого ^3не ^4попали.");
default:ChatColor(id, id, "^1[^3SayMe^1] ^4Вы нанесли ^3%d^4 урона. Последнее попадание в ^3%s^4.", g_iPlayerData[id][damage], g_szHitPlaces[g_iPlayerData[id][lasthit]]);
}
return PLUGIN_HANDLED;
}

public ClCmdSayHp(id)
{
switch(g_iPlayerData[id][killerid])
{
case 0: ChatColor(id, id, "^1[^3SayHp^1] ^4Вас ^3никто ^4не убивал.");
#if AMXX_VERSION_NUM == 183
default:ChatColor(id, g_iPlayerData[id][killerid], "^1[^3SayHp^1] ^4Вас убил: ^3%s^4 с расстояния ^3%.0f^4 метров. У него осталось: ^3%.0f^1HP ^4и ^3%.0f^1AP", g_iPlayerData[id][killername], g_iPlayerData[id][distance], g_iPlayerData[id][hpkiller], g_iPlayerData[id][apkiller]);
#else
default:ChatColor(id, g_iPlayerData[id][killerid], "^1[^3SayHp^1] ^4Вас убил: ^3%s^4 с расстояния ^3%.0f^4 метров. У него осталось: ^3%.0f^1HP ^4и ^3%.0f^1AP", g_iPlayerData[id][killername], g_fDistance[id], g_fHpKiller[id], g_fApKiller[id]);
#endif
}
return PLUGIN_HANDLED;
}

stock ChatColor(id, id2, const szMessage[], any:...)
{
if(!is_user_connected(id))
return;

static szMsg[190]; vformat(szMsg, charsmax(szMsg), szMessage, 4);
message_begin(MSG_ONE, msgSayText, .player = id);
write_byte(id2);
write_string(szMsg);
message_end();
}
Переодически вылазит errorlog с такой ошибкой, как исправить ? Спасибо заранее
 
Сообщения
1,420
Реакции
2,511
Помог
58 раз(а)
Добавить debug к названию плагина в plugins.ini чтобы получилось sayme.amxx debug
 
Сообщения
12
Реакции
-1
w0w, я это понимаю, но все равно, даже когда стоит debug, переодически появляется данная ошибка.
 

RockTheStreet

Саппорт года
Сообщения
1,743
Реакции
344
Помог
40 раз(а)
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
Zapoi, Дебаг не исправляет ошибки, а показывает её подробности.
Так можно понять, на что плагин ругается.
 
Сообщения
12
Реакции
-1
melfyk, понял, сейчас поставлю и как будут ошибки скину. Спасибо
 
Сообщения
460
Реакции
68
Помог
7 раз(а)
Zapoi, вас просит после плагина в файле plugins.ini указать режим "debug". То есть напишите после sayme_reapi.amxx debug и отправите ошибку сюда.
 

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

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