Участник
Пользователь
- Сообщения
- 460
- Реакции
- 68
- Помог
- 7 раз(а)
- Ошибка
-
L 03/13/2019 - 20:32:11: Start of error session.
L 03/13/2019 - 20:32:11: Info (map "de_dust2_2x2") (file "addons/amxmodx/logs/error_20190313.log")
L 03/13/2019 - 20:32:11: [ReAPI] set_entvar: invalid or uninitialized entity
L 03/13/2019 - 20:32:11: [AMXX] Displaying debug trace (plugin "re_sayme.amxx", version "1.1")
L 03/13/2019 - 20:32:11: [AMXX] Run time error 10: native error (native "set_entvar")
L 03/13/2019 - 20:32:11: [AMXX] [0] re_sayme.sma::Say (line 133)
L 03/13/2019 - 20:32:11: [AMXX] [1] re_sayme.sma::clCMD_SayRs (line 59)
- ОС
- 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
- Автор плагина
- neygomon, AcE
- Версия плагина
- 1.1
- Исходный код
-
/*
Доступные команды: (say/say_team) /me, /hp.
Консольные команды: amx_me_type, amx_mehp_reset_type, amx_mehp_death_event
Доступ к команде /me.
amx_me_type "0" - Для убитых игроков. "1" - Для всех игроков.
Сброс данных /me, /hp.
amx_mehp_reset_type "0" - При спавне. (Для CSDM) "1" - В новом раунде. (Для Classic)
Вывод /me, /hp после смерти.
amx_mehp_death_event "0" - Выключить. "1" - Только /me. "2" - Только /hp. "3" - Обе команды, /me и /hp.
*/
#include <amxmodx>
#include <reapi>
#if AMXX_VERSION_NUM < 183
new MaxClients
#include <colorchat>
#define MAX_NAME_LENGTH 32
#define client_disconnected client_disconnect
#endif
const m_LastHitGroup = 75
#define IsPlayer(%1) (1 <= %1 <= MaxClients)
enum SayFunctions {SayRs, SayMe, SayHp}
new const g_szHit[][] = {"", "голову", "грудь", "живот", "левую руку", "правую руку", "левую ногу", "правую ногу"}
enum _:SayData {Float:Damage, Float:HpKiller, Float:ApKiller, Float:Distance, LastHit, KillerId, KillerName[MAX_NAME_LENGTH]}
new g_Cvar[3], g_ScoreInfo, g_arrData[MAX_CLIENTS +1][SayData]
public plugin_init()
{
register_plugin("RE Me&HP", "1.1", "neygomon, AcE")
register_clcmd("say /rs", "clCMD_SayRs")
register_clcmd("say_team /rs", "clCMD_SayRs")
register_clcmd("say /me", "clCMD_SayMe")
register_clcmd("say_team /me", "clCMD_SayMe")
register_clcmd("say /hp", "clCMD_SayHp")
register_clcmd("say_team /hp", "clCMD_SayHp")
g_Cvar[0] = register_cvar("amx_me_type", "0")
g_Cvar[1] = register_cvar("amx_mehp_reset_type", "1")
g_Cvar[2] = register_cvar("amx_mehp_death_event", "3")
RegisterHookChain(RG_CBasePlayer_Spawn, "PlayerSpawn", true)
RegisterHookChain(RG_CSGameRules_RestartRound, "RestartRound", false)
RegisterHookChain(RG_CSGameRules_PlayerKilled, "PlayerKilled", true)
RegisterHookChain(RG_CBasePlayer_TakeDamage, "PlayerTakeDamage", true)
#if AMXX_VERSION_NUM < 183
MaxClients = get_maxplayers()
#endif
g_ScoreInfo = get_user_msgid("ScoreInfo")
}
public clCMD_SayRs(id)
return Say(id, SayRs)
public clCMD_SayMe(id)
return Say(id, SayMe)
public clCMD_SayHp(id)
return Say(id, SayHp)
public client_putinserver(id)
arrayset(g_arrData[id], 0, SayData)
public client_disconnected(id)
arrayset(g_arrData[id], 0, SayData)
public PlayerSpawn(id)
{
if (get_pcvar_num(g_Cvar[1]) == 0)
arrayset(g_arrData[id], 0, SayData)
}
public RestartRound()
{
if (get_pcvar_num(g_Cvar[1]) == 1)
for (new i; i <= MaxClients; i ++)
arrayset(g_arrData[i], 0, SayData)
}
public PlayerTakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if (victim == attacker)
return HC_CONTINUE
new hit = get_member(victim, m_LastHitGroup)
if (IsPlayer(attacker) && rg_is_player_can_takedamage(victim, attacker))
{
g_arrData[attacker][LastHit] = hit
g_arrData[attacker][Damage] += damage
}
return HC_CONTINUE
}
public PlayerKilled(const victim, const killer)
{
if (!IsPlayer(killer) || victim == killer)
return HC_CONTINUE
new Float:PosK[3], Float:PosV[3]
get_entvar(killer, var_origin, PosK)
get_entvar(victim, var_origin, PosV)
g_arrData[victim][KillerId] = killer
g_arrData[victim][HpKiller] = get_entvar(killer, var_health)
g_arrData[victim][ApKiller] = get_entvar(killer, var_armorvalue)
g_arrData[victim][Distance] = get_distance_f(PosK, PosV) * 0.0254
get_entvar(killer, var_netname, g_arrData[victim][KillerName], charsmax(g_arrData[][KillerName]))
switch(get_pcvar_num(g_Cvar[2]))
{
case 0: return HC_CONTINUE
case 1: Say(victim, SayMe)
case 2: Say(victim, SayHp)
case 3:
{
Say(victim, SayMe)
Say(victim, SayHp)
}
}
return HC_CONTINUE
}
Say(id, SayFunctions:type)
{
switch(type)
{
case SayRs:
{
client_cmd(id, "spk buttons/blip1.wav")
set_entvar(id, var_frags, 0.0); set_member(id, m_iDeaths, 0)
message_begin(MSG_ALL, g_ScoreInfo); write_byte(id); write_short(0)
write_short(0); write_short(0); write_short(0); message_end()
client_print_color(id, print_team_default, "^1[^4SayRs^1] ^3Ваш счет успешно ^4обнулён^3!")
}
case SayMe:
{
if (is_user_alive(id) && !get_pcvar_num(g_Cvar[0]))
client_print_color(id, print_team_default, "^1[^4SayMe^1] ^3Команда доступна только мёртвым ^4игрокам^3!")
else
{
if (!g_arrData[id][Damage])
client_print_color(id, print_team_default, "^1[^4SayMe^1] ^3Вы ни в кого ^4не попали^3!")
else
{
client_print_color(id, print_team_default, "^1[^4SayMe^1] Вы нанесли ^3%.0f^4HP ^1урона! Последнее попадание в ^4%s^1!", g_arrData[id][Damage], g_szHit[g_arrData[id][LastHit]])
}
}
}
case SayHp:
{
if (!g_arrData[id][KillerId])
client_print_color(id, print_team_default, "^1[^4SayHp^1] ^3Вас никто ^4не убивал^3!")
else client_print_color(id, g_arrData[id][KillerId], "^1[^4SayHp^1] Вас убил ^3%s ^1c ^3%.0f^4М^1! У него осталось ^3%.0f^4HP ^1и ^3%.0f^4AP^1!", g_arrData[id][KillerName], g_arrData[id][Distance], g_arrData[id][HpKiller], g_arrData[id][ApKiller])
}
}
return HC_CONTINUE
}
Всем доброго времени суток форумчане. Помогите исправить ошибку. Исходник я редактировал под себя только выводом в чат.
P.S приложу исходник оригинала ниже.
P.S приложу исходник оригинала ниже.
В этой теме было размещено решение! Перейти к решению.
Вложения
-
5.4 KB Просмотры: 357