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

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
677
Реакции
146
Помог
11 раз(а)
Ошибка
Run time error 10: native error (native "cs_get_user_shield")
ОС
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 running
[ 32] BlockDropShield v1.0 [CSMods] block_drop_shield.amxx debug
Автор плагина
[CSMods]
Версия плагина
1
Исходный код
#include <amxmodx>
#include <cstrike>

new HookDropShield

public plugin_init()
{
register_plugin("BlockDropShield","1.0","[CSMods]");
HookDropShield = register_cvar("amx_block_drop_shield", "0");
register_clcmd("drop","HookDropitems");
}

public HookDropitems(const id)
{
if(cs_get_user_shield(id))
{
client_print(id,print_chat,"Выбрасывать щит нельзя.");
}
return get_pcvar_num(HookDropShield);
}
Очень очень редка ошибка вылазит. Наконец-то ее поймал)
Лог ошибки:
L 08/11/2021 - 14:46:36: Start of error session.
L 08/11/2021 - 14:46:36: Info (map "ar_streets") (file "addons/amxmodx/logs/error_20210811.log")
L 08/11/2021 - 14:46:36: [CSTRIKE] Invalid player 17 (not in-game)
L 08/11/2021 - 14:46:36: [AMXX] Displaying debug trace (plugin "block_drop_shield.amxx", version "1.0")
L 08/11/2021 - 14:46:36: [AMXX] Run time error 10: native error (native "cs_get_user_shield")
L 08/11/2021 - 14:46:36: [AMXX] [0] Block_Drop_Shield.sma::HookDropitems (line 15)
 
В этой теме было размещено решение! Перейти к решению.

Вложения

Сообщения
3,593
Реакции
1,576
Помог
141 раз(а)
Код:
public HookDropitems(const id)
{
+   if(!is_user_connected(id))
+       return PLUGIN_CONTINUE;

    if(cs_get_user_shield(id))
    {
        client_print(id,print_chat,"Выбрасывать щит нельзя.");
    }
    return get_pcvar_num(HookDropShield);
}
 
Статус
В этой теме нельзя размещать новые ответы.

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

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