Участник
Пользователь
- Сообщения
- 321
- Реакции
- 73
- Помог
- 11 раз(а)
- Ошибка
-
Run time error 10: native error (native "set_member_s")
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5271
- Билд
-
ReHLDS version: 3.8.0.704-dev
- ReGamedll
-
ReGameDLL version: 5.19.0.486-dev
- Версия Metamod
-
Metamod-r v1.3.0.128
- Список метамодулей
-
[ 1] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 2] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 3] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 6] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 8] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5271 ini Start ANY
[ 9] MySQL RUN - mysql_amxx_i386.so v1.9.0.5271 pl8 ANY ANY
[10] hackdetector RUN - hackdetector_amxx_i386.so v0.15.328.lite pl8 ANY ANY
[11] Fun RUN - fun_amxx_i386.so v1.9.0.5271 pl8 ANY ANY
[12] Engine RUN - engine_amxx_i386.so v1.9.0.5271 pl8 ANY ANY
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5271 pl8 ANY ANY
[14] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5271 pl8 ANY ANY
[15] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5271 pl8 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5271 pl8 ANY ANY
[17] gRIP RUN - grip_amxx_i386.so v0.1.5 Beta pl8 ANY ANY
[18] ReAPI RUN - reapi_amxx_i386.so v5.18.0.203-dev pl8 ANY Never
[19] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl8 ANY Never
19 plugins, 19 running
- Список плагинов
-
[ 1] FreshBans 1.4.3b kanagava fresh_bans_143_ running
[ 2] Admin Loader 3.5 neygomon admin_loader_3. running
[ 3] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 4] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 5] Advanced Rechecker 0.4 F@nt0M rechecker.amxx running
[ 6] Advanced Gag 1.9.0 neygomon amx_gag.amxx running
[ 7] Chat Checker 0.1a Subb98 chat_checker.am running
[ 8] Chat Logger 2.1a Jim chat_logger.amx running
[ 9] Reset Score 0.0.2f wopox1337 ResetScore.amxx running
[ 10] Spray Block 1.0 maFFyoZZyk Spray_Block.amx running
[ 11] Menus Front-End 1.5 untest neugomon menufront_end.a running
[ 12] Auto AWP 1.1 OciXCrom crx_auto_awp.am running
[ 13] AWP Models 2.1.4 OciXCrom crx_awp_models. running
[ 14] Equip Remover 1.1 OciXCrom crx_equipremove running
21:02:18 [ 15] MOTD Commands 1.3 OciXCrom crx_motdcommand running
[ 16] OciXCrom's Rank System 3.9 OciXCrom crx_ranksystem. running
[ 17] Chat Manager 4.5.1 OciXCrom crx_chatmanager running
[ 18] Block Spawn For Reconn 0.1 Bos93 block_spawn.amx running
[ 19] AES: StatsX 0.5+1 serfreeman1337 aes_statsx_cstr running
[ 20] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 21] AFK Control 1.4.1 [NoR neygomon afk_control.amx running
[ 22] Advert Messages 1.22 neygomon adverts.amxx running
[ 23] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 24] Lite Vampire + Fade 1.3 neygomon lite_vampire.am running
[ 25] Advanced Client Checke 0.3.7 Mistrick cmdchecker.amxx running
[ 26] [BG] Provider: GeoIP 0.2 mx?! bg_provider_geo running
[ 27] [BG] Provider: iphub.i 0.5 mx?! bg_provider_iph running
[ 28] Bypass Guard 1.0.1 mx?! bypass_guard.am running
[ 29] Ping Control 1.31 neygomon Ping_Control.am running
21:02:18 [ 30] DM AutoBalance 0.4.0 Nordic Warrior AutoBalance.amx running
[ 31] Demo Recorder 2.4.1 F@nt0M demo_recorder.a running
[ 32] [ReAPI] Advanced Team 0.1.0 Vaqtincha AdvancedTeamCho running
[ 33] DopBan 3.0.3b kanagava dop_ban303_.amx running
[ 34] Refill Weapon On Kill 0.2 Vaqtincha refill_weapon_o debug
[ 35] Let it Snow! 1.0 OciXCrom crx_snow.amxx running
[ 36] AntiFlood Change Name 28.11.2018 sergrib block_change_na running
[ 37] Admin Commands 1.9.0.5249 AMXX Dev Team admincmd.amxx running
[ 38] Menus Front-End 1.9.0.5249 AMXX Dev Team menufront.amxx running
[ 39] Players Menu 1.9.0.5249 AMXX Dev Team plmenu.amxx running
[ 40] Admin Chat 1.9.0.5249 AMXX Dev Team adminchat.amxx running
[ 41] Stats Configuration 1.9.0.5249 AMXX Dev Team statscfg.amxx running
[ 42] CS Misc. Stats 1.9.0.5249 AMXX Dev Team miscstats.amxx running
[ 43] CS Stats Logging 1.9.0.5249 AMXX Dev Team stats_logging.a running
43 plugins, 43 running
- Автор плагина
- Vaqtincha
- Версия плагина
- #define PL_VERSION "0.2"
- Исходный код
-
// Copyright 2019 Vaqtincha
/**■■■■■■■■■■■■■■■■■■■■■■■■■■■■ CONFIG START ■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
// Рас/Комментировать чтобы вкл/выкл нужный функционал.
#define HEADSHOT_KILL_REFILL_ALL // Перезаряжать все оружие при убийстве хедшотом.
#define GRENADE_KILL_REFILL_ALL // Перезаряжать все оружие при убийстве гранатой.
#define ONLY_ACTIVE_WEAPON // Перезаряжать только активного оружие которого совершено убийство.
#define ONLY_REFILL_CLIP // Перезаряжать только магазин (или магазин+запасы.)
/**■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ CONFIG END ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#define PL_VERSION "0.2"
#include <amxmodx>
#include <reapi>
public plugin_init()
{
register_plugin("Refill Weapon On Kill", PL_VERSION, "Vaqtincha")
RegisterHookChain(RG_CSGameRules_DeathNotice, "CSGameRules_DeathNotice", .post = true)
}
public CSGameRules_DeathNotice(const pPlayer, const pKiller, pevInflictor)
{
if (pPlayer == pKiller || !is_user_alive(pKiller))
return HC_CONTINUE
if (pKiller == pevInflictor)
{
#if defined HEADSHOT_KILL_REFILL_ALL
if (get_member(pPlayer, m_bHeadshotKilled))
{
ReloadWeapons(pKiller, pevInflictor)
return HC_CONTINUE
}
#endif
#if defined ONLY_ACTIVE_WEAPON
pevInflictor = get_member(pKiller, m_pActiveItem)
if (!is_nullent(pevInflictor))
ReloadWeapons(pKiller, pevInflictor)
#else
ReloadWeapons(pKiller)
#endif
return HC_CONTINUE
}
#if defined GRENADE_KILL_REFILL_ALL
else if (FClassnameIs(pevInflictor, "grenade"))
{
ReloadWeapons(pKiller)
}
#endif
return HC_CONTINUE
}
ReloadWeapons(const pPlayer, const pWeapon = NULLENT)
{
if (pWeapon == NULLENT)
{
#if defined ONLY_REFILL_CLIP
for (new InventorySlotType:i = PRIMARY_WEAPON_SLOT, pItem; i <= PISTOL_SLOT; i++)
{
pItem = get_member(pPlayer, m_rgpPlayerItems, i)
while (!is_nullent(pItem))
{
set_member(pItem, m_Weapon_iClip, rg_get_iteminfo(pItem, ItemInfo_iMaxClip))
pItem = get_member(pItem, m_pNext)
}
}
#else
rg_instant_reload_weapons(pPlayer)
#endif
}
else
{
#if defined ONLY_REFILL_CLIP
set_member(pWeapon, m_Weapon_iClip, rg_get_iteminfo(pWeapon, ItemInfo_iMaxClip))
#else
rg_instant_reload_weapons(pPlayer, pWeapon)
#endif
}
}
Добрый вечер, помогите пожалуйста убрать ошибку в плагине. Перестал работать после обновы реапи на последнюю версию.
[ReAPI] set_member_s: 'm_Weapon_iClip' has no refs to the base class of an entity 'player'
[AMXX] Displaying debug trace (plugin "refill_weapon_on_kill.amxx", version "0.2")
[AMXX] Run time error 10: native error (native "set_member_s")
[AMXX] [0] refill_weapon_on_kill.sma::ReloadWeapons (line 83)
[AMXX] [1] refill_weapon_on_kill.sma::CSGameRules_DeathNotice (line 36) Решил проблему, оказывается есть версия 0.3, можно закрыть тему
[ReAPI] set_member_s: 'm_Weapon_iClip' has no refs to the base class of an entity 'player'
[AMXX] Displaying debug trace (plugin "refill_weapon_on_kill.amxx", version "0.2")
[AMXX] Run time error 10: native error (native "set_member_s")
[AMXX] [0] refill_weapon_on_kill.sma::ReloadWeapons (line 83)
[AMXX] [1] refill_weapon_on_kill.sma::CSGameRules_DeathNotice (line 36)
18 Дек 2020