• Регистрация на форуме отключена.
    Она будет открываться первого числа каждого месяца на 24 часа.

    Если необходимо - пишите админу группы Dev-CS в Telegram-чате.

Run time error 10: native error (native "get_member_s")

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
174
Реакции
34
Предупреждения
8
Помог
1 раз(а)
Ошибка
L 07/10/2021 - 13:21:47: Start of error session.
L 07/10/2021 - 13:21:47: Info (map "he_apps_mz") (file "addons/amxmodx/logs/error_20210710.log")
L 07/10/2021 - 13:21:47: [ReAPI] get_member_s: 'm_pActiveItem' has no refs to the base class of an entity 'trigger_hurt'
L 07/10/2021 - 13:21:47: [AMXX] Displaying debug trace (plugin "hs_blood.amxx", version "1.1")
L 07/10/2021 - 13:21:47: [AMXX] Run time error 10: native error (native "get_member_s")
L 07/10/2021 - 13:21:47: [AMXX] [0] hs_blood.sma::RG_CBasePlayerKilled_Post (line 15)
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5271
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.8.0.711-dev
Build date: 13:13:38 Feb 6 2021 (2492)
ReGamedll
ReGameDLL version: 5.20.0.492-dev
Build date: 15:26:35 Jan 4 2021
Версия 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
Список метамодулей
метамодулей	
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0.5 ini Start ANY
[ 2] dproto_EF RUN - dproto.so v0.9.582 ini Start Never
[ 3] LocalizeBug Fix RUN - localizebugfix.s v2.4 ini Start Never
[ 4] VoiceTranscoder RUN - VoiceTranscoder. v2017RC5 ini ANY
[ 5] hackdetector RUN - hackdetector_amx v0.15.32 pl1 ANY
[ 6] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl1 ANY
[ 7] Engine RUN - engine_amxx_i386 v1.9.0.5 pl1 ANY
[ 8] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl1 ANY
[9] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl1 ANY ANY
[10] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl1 ANY ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl1 ANY ANY
[12] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl1 ANY ANY
[13] ReAPI RUN - reapi_amxx_i386.so v5.19.0.211-dev pl2 ANY
Список плагинов
[1] AIM detector            v0.9.2cs     kanagava          aim_detector.am  running  
[ 2] FreshBans v1.4.2b kanagava fresh_bans.amxx running
[ 3] Admin Loader v3.5 neygomon admin_loader.am running
[ 4] StatsX (MastaMan Editi v1.8.0.3660 AMXX Dev Team statsx_shell.am running
[ 5] Admin Chat v1.9.0.5271 AMXX Dev Team adminchat.amxx running
[ 6] Admin Commands v1.9.0.5271 AMXX Dev Team admincmd.amxx running
[ 7] Admin Votes v1.9.0.5271 AMXX Dev Team adminvote.amxx running
[ 8] Menus Front-End v1.9.0.5271 AMXX Dev Team menufront.amxx running
[ 9] Commands Menu v1.9.0.5271 AMXX Dev Team cmdmenu.amxx running
[ 10] Players Menu v1.9.0.5271 AMXX Dev Team plmenu.amxx running
[ 11] Maps Menu v1.9.0.5271 AMXX Dev Team mapsmenu.amxx running
[ 12] Plugin Menu v1.9.0.5271 AMXX Dev Team pluginmenu.amxx running
[ 13] Scrolling Message v1.9.0.5271 AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages v1.9.0.5271 AMXX Dev Team imessage.amxx running
[ 15] Map Manager v2.5.61 Mistrick mapmanager.amxx running
[ 16] Map Manager: Sub Plugi v0.1 Mistrick mapmanager_subp running
[ 17] TimeLeft v1.9.0.5271 AMXX Dev Team timeleft.amxx running
[ 18] Stats Configuration v1.9.0.5271 AMXX Dev Team statscfg.amxx running
[ 19] GGAMXX v2.12 Avalanche gg.amxx running
[ 20] Auto Team Balance Adva v1.5.1 Radius auto_team_balan running
[ 21] Autoresponder/Advertis v0.5 MaximusBrood ad_manager.amxx running
[ 22] Blue Fade v0.1 Stimul Blue_Fade.amxx running
[ 23] Auto recording demo v2.0 IzI | Bonaqua (R amx_autodemorec running
[ 24] Admin Gag v1.0 AndrewZ admin_gag.amxx running
[ 25] mute v1.0 Aziz mute.amxx running
[ 26] AFK v2.3 rapara13/Nordic afk.amxx running
[ 27] Admin Prefixes v4.1 m0skVi4a ;] admin_prefixes. running
[ 28] Spawn Protection v7.0 Peli spawnprotection running
[ 29] Custom Models v1.3.2 neugomon custom_models.a running
[ 30] Round Non-Stop v0.3.6 Simon Logic round_nonstop.a running
[ 31] HeadShot Blood v1.1 [CSMods] & tuty hs_blood.amxx debug
Автор плагина
[CSMods] & tuty
Версия плагина
1.1
Исходный код
#include <amxmodx>
#include <reapi>

public plugin_init()
{
register_plugin( "HeadShot Blood", "1.1", "[CSMods] & tuty" );

RegisterHookChain(RG_CBasePlayer_Killed,"RG_CBasePlayerKilled_Post", .post = true);
}

public RG_CBasePlayerKilled_Post(const pVictim,const pAttacker) {
if(!get_member(pVictim,m_bHeadshotKilled))
return HC_CONTINUE;

new iWeaponID = get_member(get_member(pAttacker,m_pActiveItem),m_iId);
if(iWeaponID == CSW_M4A1 || iWeaponID == CSW_AK47)
Func__SetBoold(pVictim);

return PLUGIN_CONTINUE;
}


stock Func__SetBoold(const id)
{
new Float:fOrigin[ 3 ];
get_entvar(id,var_origin,fOrigin);

message_begin_f(MSG_PVS,SVC_TEMPENTITY,fOrigin); {
write_byte(TE_BLOODSTREAM);
write_coord_f(fOrigin[0]);
write_coord_f(fOrigin[1]);
write_coord_f(fOrigin[2] + 30.0);
write_coord_f(random_float(-20.0,20.0));
write_coord_f(random_float(-20.0,20.0));
write_coord_f(random_float(50.0,300.0));
write_byte(70);
write_byte(random_num(100,200));
}
message_end();

message_begin_f(MSG_PVS,SVC_TEMPENTITY,fOrigin); {
write_byte(TE_BLOODSTREAM);
write_coord_f(fOrigin[0]);
write_coord_f(fOrigin[1]);
write_coord_f(fOrigin[2] + 10.0);
write_coord_f(random_float(-360.0,360.0));
write_coord_f(random_float(-360.0,360.0));
write_coord_f(-10.0);
write_byte(70);
write_byte(random_num(50,100));
}
message_end();
}
Ошибка иногда появляется в основном на картах, где есть trigger_hurt.
Error_log
L 07/10/2021 - 13:21:47: Start of error session.
L 07/10/2021 - 13:21:47: Info (map "he_apps_mz") (file "addons/amxmodx/logs/error_20210710.log")
L 07/10/2021 - 13:21:47: [ReAPI] get_member_s: 'm_pActiveItem' has no refs to the base class of an entity 'trigger_hurt'
L 07/10/2021 - 13:21:47: [AMXX] Displaying debug trace (plugin "hs_blood.amxx", version "1.1")
L 07/10/2021 - 13:21:47: [AMXX] Run time error 10: native error (native "get_member_s")
L 07/10/2021 - 13:21:47: [AMXX] [0] hs_blood.sma::RG_CBasePlayerKilled_Post (line 15)
 
В этой теме было размещено решение! Перейти к решению.

Вложения

Статус
В этой теме нельзя размещать новые ответы.

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

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