Не работает плагин

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
4
Реакции
0
Ошибка
Плагин "test.amxx" включён но не работает.
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5263
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 13:12:29 Aug 29 2013 (6153)
ReGamedll
None
Версия 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
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] AMX Mod X RUN - amxmodx.so v1.9.0.5263 ini Start ANY
[ 2] dproto_EF RUN - dproto.so v0.9.582 ini Start Never
[ 3] LocalizeBug Fix RUN - localizebugfix.so v2.4 ini Start Never
[ 4] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl1 ANY
[ 5] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5263 pl1 ANY
[ 6] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl1 ANY
[ 7] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl1 ANY
[ 8] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.8.3-manual pl1 ANY
[ 9] ReAPI RUN - reapi_amxx_i386.so v5.21.0.248-dev pl1 ANY Never
[10] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl1 ANY ANY
[11] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl1 ANY ANY
[12] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl1 ANY ANY
[13] CSDM2 RUN - csdm_amxx_i386.so v2.1.3c-KWo pl1 ANY ANY
13 plugins, 13 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] FreshBans v1.4.5b kanagava fresh_bans.amxx running
[ 2] Admin Loader v3.5 neygomon admin_loader.am running
[ 3] Advanced Bans v0.8.1 Exolent advanced_bans.a running
[ 4] Admin Commands v1.8.2 AMXX Dev Team admincmd.amxx running
[ 5] Admin Help v1.8.2 AMXX Dev Team adminhelp.amxx running
[ 6] Slots Reservation v1.8.2 AMXX Dev Team adminslots.amxx running
[ 7] Multi-Lingual System v1.8.2 AMXX Dev Team multilingual.am running
[ 8] Menus Front-End v1.8.2 AMXX Dev Team menufront.amxx running
[ 9] Commands Menu v1.8.2 AMXX Dev Team cmdmenu.amxx running
[ 10] Players Menu v1.8.1.3746 AMXX Dev Team plmenu_ab_base. running
[ 11] Maps Menu v1.8.2 AMXX Dev Team mapsmenu.amxx running
[ 12] Plugin Menu v1.8.2 AMXX Dev Team pluginmenu.amxx running
[ 13] Admin Chat v1.8.2 AMXX Dev Team adminchat.amxx running
[ 14] Anti Flood v1.8.2 AMXX Dev Team antiflood.amxx running
[ 15] Scrolling Message v1.8.2 AMXX Dev Team scrollmsg.amxx running
[ 16] Info. Messages v1.8.2 AMXX Dev Team imessage.amxx running
[ 17] Admin Votes v1.8.1.3746 AMXX Dev Team adminvote.amxx running
[ 18] Voteban in AdvBans v1.0.0 Wildness TM voteban_in_advb running
[ 19] TimeLeft v1.9.0.5263 AMXX Dev Team timeleft.amxx running
[ 20] Advanced Bans 0.8.1 Exolent advanced_bans_s error
[ 21] Pause Plugins v1.8.2 AMXX Dev Team pausecfg.amxx running
[ 22] Stats Configuration v1.8.2 AMXX Dev Team statscfg.amxx running
[ 23] StatsX v1.8.2 AMXX Dev Team statsx.amxx running
[ 24] CSDM Equip v2.1.3c CSDM Team CSDM_Equip.amxx running
[ 25] CSDM FFA v2.1.3c CSDM Team CSDM_Ffa.amxx running
[ 26] unknown vunknown unknown csdm_normalizer bad load
[ 27] CSDM Item Mode v2.1.3c FALUCO & KWo & S CSDM_ItemMode.a running
[ 28] CSDM Main v2.1.3c CSDM Team CSDM_Main.amxx running
[ 29] CSDM Misc v2.1.3c CSDM Team CSDM_Misc.amxx running
[ 30] CSDM Protection v2.1.3c BAILOPAN CSDM_Protection running
[ 31] CSDM Spawns v2.1.3c CSDM Team CSDM_SpawnPrese running
[ 32] CDSM Stop Respawn v1.0 teame06 CSDM_StopRespaw running
[ 33] CSDM Stripper v2.1.3c KWo CSDM_Stripper.a running
[ 34] CSDM Ticketing v2.1.3c BAILOPAN CSDM_Tickets.am running
[ 35] Earflaps hat v2.0 OverGame Earflaps.amxx running
[ 36] Cristmas grenades v1.0 OverGame cristmas-grenad running
[ 37] Weather System v2.9c UFPS.Team sneg.amxx running
[ 38] Parachute v1.0 maeStro parachute.amxx running
[ 39] Demo Recorder RBS v15.07.15 SKAJIbnEJIb demorecorder_rb running
[ 40] V.I.P Custom AK-47 1.0.0 Vaqtincha custom_ak47.amx error
[ 41] V.I.P Custom M4A1 1.0.0 Vaqtincha custom_m4a1.amx error
[ 42] V.I.P Custom AWP 1.0.0 Vaqtincha custom_awp.amxx error
[ 43] V.I.P Custom DEAGLE 1.0.0 Vaqtincha custom_deagle.a error
[ 44] Bullet Damage v0.0.1 ConnorMcLeod bullet_damage.a running
[ 45] Ping Control v0.3 Freedo.m | neygo Ping_Control.am running
[ 46] Advanced Experience Sy v0.4.1 serfreeman1337 aes_main.amxx running
[ 47] AES: Exp CSTRIKE v0.3 serfreeman1337 aes_exp_cstrike running
[ 48] AES: Informer v0.2 serfreeman1337 aes_informer.am running
[ 49] AES: Bonus System v0.2 serfreeman1337 aes_bonus_syste running
[ 50] AES: Experience Editor v0.1 serfreeman1337 aes_exp_editor. running
[ 51] AES: Bonus CSTRIKE v0.4 serfreeman1337 aes_bonus_cstri running
[ 52] FM ResetScore v0.1 neygomon fm_rs.amxx running
[ 53] Map Manager v2.5.61 Mistrick mapmanager.amxx running
[ 54] MultiJump v1.1 twistedeuphoria multijump.amxx running
[ 55] XMAS Skybox v1.0 SeMax xmas_sky.amxx running
[ 56] Gifts v0.7 Psycrow next21_gifts.am running
[ 57] Mode 2x2 v1.9 s1lent mode.amxx running
[ 58] RockTheVote v1.8 DA rockthevote_cus running
[ 59] GunGame AMMO v2.2 Prayer gg_ammo.amxx running
[ 60] Info Rank v4.0 UFPS.Team info_rank.amxx running
[ 61] Simple Admin Models v1.0 WhiteBlue simpleadminmode running
[ 62] Плагин меню v1.0 Dikiy Admin_menu_Diki running
[ 63] Плагин меню v1.0 Dikiy Menu_Dikiy1.amx running
[ 64] Hide Symbol Chat v1.0 s1lent SymbolChat.amxx running
[ 65] Translate v2.1 OverGame Translate.amxx running
[ 66] unknown vunknown unknown test.amxx running
[ 67] Roundend Blocker v1.1.065 Nextra roundend_blocke running
[ 68] Auto Steаm Vip v1.1 Jack Daniel`s auto_steam_vip. running
[ 69] Weapons Skins Manager v0.0.1 Vaqtincha weapons_skins_m running
[ 70] [CSDM]VampireKilled v1.0 StudenT csdm_vampirekil running
[ 71] 'Fire in the hole' v1.0 Leo_[BH] fire_in_the_hol running
[ 72] New Year Counter v2.0 lddnsk new_year_counte running
[ 73] fb_forwards v0.1.4 Kanagava & Realu fb_forwards.amx running
[ 74] Autoresponder/Advertis v0.5 MaximusBrood reklama_in_chat running
[ 75] Advanced Weapon Tracer v1.3.0 ConnorMcLeod advanced_weapon running
[ 76] Automatic Unstuck v1.5 NL)Ramon(NL automatic_unstu running
[ 77] COLORS MENU v1.2 DUKKHAZ0R colors_menu.amx running
[ 78] smat_connect v0.6 smatJkee smat_connect.am running
[ 79] unknown vunknown unknown csdm_equip.amxx bad load
[ 80] unknown vunknown unknown csdm_spawn_pres bad load
[ 81] unknown vunknown unknown csdm_misc.amxx bad load
[ 82] unknown vunknown unknown csdm_stripper.a bad load
[ 83] unknown vunknown unknown csdm_protection bad load
[ 84] unknown vunknown unknown csdm_ffa.amxx bad load
[ 85] unknown vunknown unknown as_informer.amx bad load
[ 86] unknown vunknown unknown as_nvault.amxx bad load
[ 87] unknown vunknown unknown vip_custom.amxx bad load
( 20) Error: Could not connect to database.
( 26) Load fails: Plugin file open error (plugin "csdm_normalizer.amxx")
( 40) Error: V.I.P Custom AK-47 Config File Not Found!
( 41) Error: V.I.P Custom M4A1 Config File Not Found!
( 42) Error: V.I.P Custom AWP Config File Not Found!
( 43) Error: V.I.P Custom DEAGLE Config File Not Found!
( 79) Load fails: Plugin file open error (plugin "csdm_equip.amxx")
( 80) Load fails: Plugin file open error (plugin "csdm_spawn_preset.amxx")
( 81) Load fails: Plugin file open error (plugin "csdm_misc.amxx")
( 82) Load fails: Plugin file open error (plugin "csdm_stripper.amxx")
( 83) Load fails: Plugin file open error (plugin "csdm_protection.amxx")
( 84) Load fails: Plugin file open error (plugin "csdm_ffa.amxx")
( 85) Load fails: Plugin uses an unknown function (name "as_get_user_max_exp") - check your modules.ini.
( 86) Load fails: Plugin uses an unknown function (name "as_set_user_level") - check your modules.ini.
( 87) Load fails: Plugin file open error (plugin "vip_custom.amxx")
87 plugins, 72 running
Автор плагина
unknown
Версия плагина
vunknown
Исходный код
#include amxmodx
#tryinclude reapi
#if !defined _reapi_included
#include hamsandwich
#endif

//[Настройки]
#define VIP_ACCESS read_flags("t")
#define VIP_MULTIDAMAGE 2.0

new bool:g_bUserMultiDamage[MAX_PLAYERS + 1], Float:g_fMultiDamage = 1.05;

public plugin_init() {
g_fMultiDamage = VIP_MULTIDAMAGE;
if(g_fMultiDamage < 1.05) { g_fMultiDamage = 1.05; }

#if defined _reapi_included
RegisterHookChain(RG_CBasePlayer_TraceAttack, "@RG_TraceAttackUser", false);
#else
RegisterHam(Ham_TraceAttack, "player", "@HM_TraceAttackUser", false);
#endif
}

#if defined _reapi_included
@RG_TraceAttackUser(iVictim, iAttacker, Float:fDamage, Float:vecDir[3], iTraceId, bitDamage) {
if(!(0 < iAttacker <= MaxClients) || !g_bUserMultiDamage[iAttacker]) return;
SetHookChainArg(3, ATYPE_FLOAT, (fDamage * g_fMultiDamage));
}
#else
@HM_TraceAttackUser(iVictim, iAttacker, Float:fDamage, Float:vecDir[3], iTraceId, bitDamage) {
if(!(0 < iAttacker <= MaxClients) || !g_bUserMultiDamage[iAttacker]) return;
SetHamParamFloat(3, (fDamage * g_fMultiDamage));
}
#endif

public client_putinserver(pId) {
if(get_user_flags(pId) & VIP_ACCESS) { g_bUserMultiDamage[pId] = true; }
else { g_bUserMultiDamage[pId] = false; }
}
Установил все необходимые модули для работы плагина на увеличение урона, но он либо не работает, либо работает очень криво. Может что-то не так в коде?
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
775
Реакции
293
Помог
11 раз(а)
Maks_m1998, вызов инклюда по старому стоит, а надо #include reapi
 
Сообщения
3,593
Реакции
1,576
Помог
141 раз(а)
Maks_m1998, если скомпилировал с reapi, то работать не будет. У тебя не установлен ReGameDLL, соответственно функции не будут доступны.
 
Сообщения
511
Реакции
111
Помог
16 раз(а)
@Maks_m1998,да возьми и проверь
 
Сообщения
1,304
Реакции
2,303
Помог
57 раз(а)
Исходя из чего сделан вывод что плагин не работает, или работает криво? Как вы отладку проводили?
 
Сообщения
4
Реакции
0
r1nk0, Да, если скомпилировать без реапи плагин отлично работает.
BlackSignature, Я устанавливал на сервер плагин ибез некоторых модулей и с ними, результат был один и тот же, потом я попытался установить ReGameDLL из-за чего у меня просто лёг сервер. Далее я сделал вывод что плагин возможно будет работать если убрать строчку с reapi и он начал корректно работать!
 
Сообщения
3,047
Реакции
1,739
Помог
80 раз(а)
Maks_m1998, конечно, ведь у тебя база сервера и плагины 10-летней давности.
 
Статус
В этой теме нельзя размещать новые ответы.

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

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