Перестали сохраняться классы зомби

Сообщения
61
Реакции
9
Помог
1 раз(а)
Ошибка
L 08/07/2024 - 16:19:05: [AMXX] Run time error 10: native error (native "zp_class_zombie_set_next")
L 08/07/2024 - 16:19:05: [AMXX] [0] zp50_zp43_compat2.sma::native_set_user_zombie_class (line 603)
L 08/07/2024 - 16:19:05: Unhandled dynamic native error
L 08/07/2024 - 16:19:05: [AMXX] Displaying debug trace (plugin "zp_zm_class_saver.amxx", version "1.0")
L 08/07/2024 - 16:19:05: [AMXX] Run time error 10: native error (native "zp_set_user_zombie_class")
L 08/07/2024 - 16:19:05: [AMXX] [0] zp_zm_class_saver.sma::zp_user_infected_pre (line 75)
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5294 (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: Dec 3 2021 15:54:56
Built from: https://github.com/alliedmodders/amxmodx/commit/363871a
Build ID: 5294:363871a
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.13.0.788-dev
Build date: 07:36:33 Jul 12 2023 (3378)
Build from: https://github.com/dreamstalker/rehlds/commit/f955b07
ReGamedll
ReGameDLL version: 5.22.0.593-dev
Build date: 03:10:30 Jul 11 2023
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/e1d1c11
Версия Metamod
Metamod-r v1.3.0.131, API (5:13)
Metamod-r build: 18:51:02 Jul 11 2022
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/adc9414
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion.so v0.1.0.137 ini Start Never
[ 2] ReSemiclip RUN - resemiclip.so v2.3.9 ini ANY
[ 3] Revoice RUN - revoice.so v0.1.0.34 ini Start Never
[ 4] Ultimate Unprecacher RUN - ultimate_unprecacher.so vBeta 2.5.3 ini Chlvl Chlvl
[ 5] AMX Mod X RUN - amxmodx.so v1.9.0.5294 ini Start ANY
[ 6] Rechecker RUN - rechecker.so v2.7 ini ANY
[ 7] ReSRDetector RUN - resrdetector.so v0.1.0 ini ANY
[ 8] WHBlocker RUN - whblocker.so v1.5.697 ini ANY
[ 9] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl5 ANY
[10] CSX RUN - csx_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[11] ReAPI RUN - reapi_amxx_i386.so v5.22.0.254-dev pl5 ANY Never
[12] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[13] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[15] Fun RUN - fun_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[16] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
[17] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5294 pl5 ANY ANY
17 plugins, 17 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] Admin Loader 3.5 neygomon admin_loader.am running
[ 2] FreshBans 1.4.8b kanagava fresh_bans.amxx running
[ 3] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 4] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 5] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 6] [Customizable] AmxModM 0.0.5 Albertio amxmodmenu.amxx running
[ 7] Maps Menu 1.9.0.5294 AMXX Dev Team mapsmenu.amxx running
[ 8] Players Menu 1.9.0.5294 AMXX Dev Team plmenu.amxx running
[ 9] Plugin Menu 1.9.0.5294 AMXX Dev Team pluginmenu.amxx running
[ 10] Teleport Menu 1.9.0.5294 AMXX Dev Team telemenu.amxx running
[ 11] Scrolling Message 1.9.0.5294 AMXX Dev Team scrollmsg.amxx running
[ 12] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 13] CS Misc. Stats 1.9.0.5294 AMXX Dev Team miscstats.amxx running
[ 14] CS Stats Logging 1.9.0.5294 AMXX Dev Team stats_logging.a running
[ 15] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 16] Change Game Name 1.2 ReHLDS Team change_game_nam running
[ 17] Reklama 20.05.2020 mx?! reklama.amxx running
[ 18] Map Manager: Core 3.1.5 Mistrick map_manager.amx running
[ 19] [GM] AntiAdv 0.0.2 [GM] NWC gm_antiadv.amxx running
[ 20] Yet Another Voteban 1.51 AndrewZ & noskil yet_another_vot running
[ 21] AES: StatsX 0.5 Vega serfreeman1337 aes_statsx.amxx running
[ 22] Block command vote 1.0 6u3oH block_cmd_vote. running
[ 23] Fix spam bots 1.0 BaRSiK fix_spam_bots.a running
[ 24] [ZP] Core/Engine 5.0.8 ZP Dev Team zp50_core.amxx running
[ 25] [AMXX] Settings API 1.0 MeRcyLeZZ amx_settings_ap running
[ 26] [CS] Player Models API 1.2 WiLS cs_player_model running
[ 27] [CS] Teams API 1.2 WiLS cs_teams_api.am running
[ 28] [CS] MaxSpeed API 1.0 WiLS cs_maxspeed_api running
[ 29] [CS] Weapon Models API 1.1 WiLS cs_weap_models_ running
[ 30] [CS] Weapons Restrict 0.4 WiLS cs_weap_restric running
[ 31] [CS] Ham Hooks for Bot 1.0 WiLS cs_ham_bots_api running
[ 32] [ZP] Class: Zombie 5.0.8 ZP Dev Team zp50_class_zomb running
[ 33] [ZP] Class: Human 5.0.8 ZP Dev Team zp50_class_huma running
[ 34] [ZP] Class: Nemesis 5.0.8 ZP Dev Team zp50_class_neme running
[ 35] [ZP] Class: Survivor 5.0.8 ZP Dev Team zp50_class_surv running
[ 36] [ZP] Class: Assassin 5.0.8 ZP Dev Team zp50_class_assa running
[ 37] [ZP] Class: Sniper 5.0.8 ZP Dev Team zp50_class_snip running
[ 38] Save Zombie 1.0 zmd94 zp_zm_class_sav debug
[ 39] [ZP] Class : BunnyHop 1.1 ?a?es? zp_zclass_bhzom running
[ 40] [ZP] Class : Leap Zomb 1.4.2 Fry! zp_zlongjump.am running
[ 41] [CSO Like] ZClass: Hea 0.2 | 03.0 inf (nimroK) cso_zclass_heav running
[ 42] [ZP] Invisible Zombie 1.0d Fry! zp_class_invisi running
[ 43] [ZP 4.3] ZClass: Regen 1.1 ImmortalAmxx amxxclassregene running
[ 44] [ZP] Wallclimb 1.0 WallClimb by Pyt zp_class_climb. running
[ 45] [ZP] CROW ZOMBIE 1.0 v3x+Roadrage zp_class_crow2. running
[ 46] [ZP] Zombie Class: Cer 0.1 DJHD! zp_zclass_cerbe running
[ 47] [ZP] Class: x-Voodoo 2019 | 1.0 xUnicorn (t3rkec zp_zclass_voodo running
[ 48] [ZP] Class: Zombie: An 1.0.0 Excalibur.007 zp50_class_zomb running
[ 49] [ZP] Zombie Class: KF 0.2 meTaLiCroSS zp_zclass_siren running
[ 50] [ZP] Zombie Class: Thi 1.1 BaRSiK zp_zombie_class running
[ 51] [ZP] Class: Mothercrab 0.1 Class zombie by zp_class_mother running
[ 52] [X-CSO] Class: Hunter 1.1 xUnicorn (t3rkec x_zclass_hunter running
[ 53] Undertaker 1.0 DSHGFHDS zp_undertaker.a debug
[ 54] [ZP] Class: Human: Cla 5.0.8 ZP Dev Team zp50_class_huma running
[ 55] [ZP] Human Armor 5.0.8 ZP Dev Team zp50_human_armo running
[ 56] [ZP] Game Modes Manage 5.0.8 ZP Dev Team zp50_gamemodes2 running
[ 57] [ZP] Game Mode: Infect 5.0.8 ZP Dev Team zp50_gamemode_i running
[ 58] [ZP] Game Mode: Multip 5.0.8 ZP Dev Team zp50_gamemode_m paused
[ 59] [ZP] Game Mode: Swarm 5.0.8 ZP Dev Team zp50_gamemode_s paused
[ 60] [ZP] Game Mode: Nemesi 5.0.8 ZP Dev Team zp50_gamemode_n paused
[ 61] [ZP] Game Mode: Surviv 5.0.8 ZP Dev Team zp50_gamemode_s paused
[ 62] [ZP] Game Mode: sniper 5.0.8 ZP Dev Team zp50_gamemode_s paused
[ 63] [ZP] Game Mode: Assass 5.0.8 ZP Dev Team zp50_gamemode_a paused
[ 64] [ZP] Game Mode: Plague 5.0.8 ZP Dev Team zp50_gamemode_p paused
[ 65] [ZP] Game Mode: Armage 5.0.8 ZP Dev Team zp50_gamemode_a paused
[ 66] [ZP] Items Manager 5.0.8 ZP Dev Team zp50_items.amxx running
[ 67] [ZP] Items Manager: Am 5.0.8 ZP Dev Team zp50_items_ammo running
[ 68] [ZP] Item: Weapons 5.0.8 ZP Dev Team zp50_item_weapo running
[ 69] [ZP] Item: Nightvision 5.0.8 ZP Dev Team zp50_item_night running
[ 70] [ZP] Item: Antidote 5.0.8 ZP Dev Team zp50_item_antid running
[ 71] [ZP] Item: Zombie Madn 5.0.8 ZP Dev Team zp50_item_zombi running
[ 72] [ZP] Item: Infection B 5.0.8 ZP Dev Team zp50_item_infec running
[ 73] [ZP] Admin Commands 5.0.8 ZP Dev Team zp50_admin_comm running
[ 74] [ZP] Admin Menus 5.0.8 ZP Dev Team zp50_admin_menu running
[ 75] [ZP] Admin Models 5.0.8 ZP Dev Team zp50_admin_mode running
[ 76] [ZP] Custom Buy Menus 5.0.8 ZP Dev Team zp50_buy_menus2 running
[ 77] [ZP] Buyzones 5.0.8 ZP Dev Team zp50_buy_zones2 running
[ 78] [ZP] Rewards: Ammo Pac 5.0.8 ZP Dev Team zp50_rewards_am running
[ 79] [ZP] Rewards: Frags & 5.0.8 ZP Dev Team zp50_rewards_fr running
[ 80] [ZP] Deathmatch 5.0.8 ZP Dev Team zp50_deathmatch running
[ 81] [ZP] Random Spawning 5.0.8 ZP Dev Team zp50_random_spa running
[ 82] [ZP] Spawn Protection 5.0.8 ZP Dev Team zp50_spawn_prot running
[ 83] [ZP] Connect - Respawn 1.1 ILUSION & Abed zp50_respawn_co running
[ 84] [ZP] Zombie Features 5.0.8 ZP Dev Team zp50_zombie_fea running
[ 85] [ZP] Zombie Sounds 5.0.8 ZP Dev Team zp50_zombie_sou running
[ 86] [ZP] Zombie Damage 5.0.8 ZP Dev Team zp50_zombie_dam running
[ 87] [ZP] Human Unlimited A 5.0.8 ZP Dev Team zp50_human_ammo running
[ 88] [ZP] Flashlight 5.0.8 ZP Dev Team zp50_flashlight running
[ 89] [ZP] Nightvision 5.0.8 ZP Dev Team zp50_nightvisio running
[ 90] [ZP] Leap/Longjump 5.0.8 ZP Dev Team zp50_leap2.amxx running
[ 91] [ZP] Pain Shock Free 5.0.8 ZP Dev Team zp50_painshockf running
[ 92] [ZP] Knockback 5.0.8 ZP Dev Team zp50_knockback2 running
[ 93] [ZP] Weapon Drop/Strip 5.0.8 ZP Dev Team zp50_weapon_dro running
[ 94] [ZP] Effects: Infect 5.0.8 ZP Dev Team zp50_effects_in running
[ 95] [ZP] Effects: Cure 5.0.8 ZP Dev Team zp50_effects_cu running
[ 96] [ZP] Effects: Lighting 5.0.8 ZP Dev Team zp50_effects_li running
[ 97] [ZP] Ambience Effects 5.0.8 ZP Dev Team zp50_ambience_e running
[ 98] [ZP] Ambience Sonds 5.0.8 ZP Dev Team zp50_ambience_s running
[ 99] [ZP] Main Menu 5.0.8 ZP Dev Team zp50_main_menu4 running
[100] [ZP] Objective Remover 5.0.8 ZP Dev Team zp50_objective_ running
[101] [ZP] Gameplay Fixes 5.0.8 ZP Dev Team zp50_gameplay_f running
[102] [ZP] Team Scoring 5.0.8 ZP Dev Team zp50_team_scori running
[103] [ZP] HUD Information 5.0.8 ZP Dev Team zp50_hud_info2. running
[104] [ZP] Ammo Packs 5.0.8 ZP Dev Team zp50_ammopacks. running
[105] [ZP] Grenade: Fire 5.0.8 Leo_[BH] & ZP De zp50_grenade_fi running
[106] [ZP] Grenade: Frost 5.0.8 Leo_[BH] & ZP De zp50_grenade_fr running
[107] [ZP] Grenade: Flare 5.0.8 Leo_[BH] & ZP De zp50_grenade_fl running
[108] unknown unknown unknown soundsPre.amxx running
[109] [ZP] ZP 4.3 Subplugin 5.0.8 ZP Dev Team zp50_zp43_compa debug
[110] [ZP50] Class unlocker 1.1 Catastrophe zp50_extra_limi running
[111] [ZP] Class Limiter 1.1 WiLS zp_class_limite running
[112] [ZP43] Extra item: Gas 3.0 H.RED.ZONE zp43_gas_mask.a running
[113] ZP Countdown Vox 0.0.1 wbyokomo zp_vox_countdow running
[114] Player Name 0.9.2 default zp_player_name. running
[115] [ZP] Extra Item: No Re 0.1.0 fezh zp_extra_no_rec running
[116] [ZP] Extra Item: Multi 1.0 pharse zp_extra_multij running
[117] [ZP] Extra Item: Knife 1.2 pharse & sexy2x7 zp_extra_knife_ running
[118] [ZP] Donate Plugin 1.0 @bdul! zp_donate_ammo_ running
[119] Amx Dodge 0.1.0 PomanoB zp_dodge_human. running
[120] [ZP] Buy Health Points 1.0 T[h]E Dis[as]teR zp_buyhp_limitZ running
[121] [ZP] Buy Health Points 1.0 T[h]E Dis[as]teR zp_buyhp_limitH running
[122] [ZP] Extra: Anti-Infec 1.0 MeRcyLeZZ zp_buyArmorLimi running
[123] ZP AP Store 0.0.1 wbyokomo zp_ap_store.amx running
[124] [ZP] Extra: Unlimited 1.0 MeRcyLeZZ zp_extra_unlimi running
[125] [ZP] LaserMine 2.8.1 SandStriker / Sh zp_lasermine_28 running
[126] [ZP] WPN Minigun 1.65 CLLlAgOB zp_extra_minigu running
[127] [ZP] Extra Item: Gauss 0.6 meTaLiCroSS zp_extra_gauss. running
[128] ZM VIP 1.9.1 BETA aaarnas zm_vip.amxx running
[129] NadeModes 11.2 Nomexous & OT nademodes.amxx running
[130] [ZP] Item: Antidote Bo 5.0.8 ZP Dev Team zp50_item_antid running
[131] [ZP] Addon: Extended G 2.0 [ru]In1ernal Err zp_ammo_ex.amxx running
[132] [ZP] Extra Drag 0.1 4eRT zp_extra_drag_a running
[133] Perfect Camera 0.2.5 Nordic Warrior PerfectCamera.a running
[134] Glowsticks [ZP] 1.0 Leo_[BH] zp_glowsticks.a running
[135] ZP Knife Knock Back 0.0.1 wbyokomo zp_knife_kb2.am running
[136] [ZP] Extra: SVD 1.0 DoNoR zp_weapon_svd.a running
[137] [ZP] Extra: Leader AS- 1.0 LARS-DAY[BR]EAKE zp_weapon_val.a running
[138] Cleaning ads on the ma 1.1 g3cKpunTop CleaningAdsOnTh running
[139] Map Manager: Core 3.2.1 Mistrick map_manager_cor running
[140] Map Manager: Scheduler 0.1.10 Mistrick map_manager_sch running
[141] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[142] Map Manager: Nominatio 0.2.1 Mistrick map_manager_nom running
[143] Map Manager: Effects 0.1.1 Mistrick map_manager_eff running
[144] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[145] Map Manager: Sounds 0.0.2 Mistrick map_manager_sou running
[146] ChatAdditions: Core v1.9.1 Sergey Shorokhov ChatAdditions_C running
[147] ChatAdditions: SQLite v1.9.1 Sergey Shorokhov CA_Storage_SQLi running
[148] CA: Anti Flood v1.9.1 Nordic Warrior CA_AntiFlood.am running
[149] CA: Mute v1.9.1 Sergey Shorokhov CA_Mute.amxx running
[150] CA: VoteGAG 1.0.0-alph Sergey Shorokhov CA_Addon_VoteGa running
[151] CA Addon: Request UnGA v1.9.1 steelzzz CA_Addon_Reques running
[152] CA: Gag v1.9.1 Sergey Shorokhov CA_Gag.amxx running
152 plugins, 144 running
Автор плагина
zmd94
Версия плагина
1.0
Исходный код
#include <amxmodx>
#include <zombieplague>
#include <nvault>

new g_Vault
new g_sName[33][35], g_sZombiesID[33]

public plugin_init()
{
register_plugin( "Save Zombie" , "1.0" , "zmd94" );

register_event("DeathMsg", "event_DeathMsg", "a", "1>0")
}

public plugin_cfg()
{
g_Vault = nvault_open( "save_zombie");

if ( g_Vault == INVALID_HANDLE )
set_fail_state( "Error opening nVault" );
}

public plugin_end()
{
nvault_close( g_Vault );
}

public client_authorized(id)
{
get_user_name(id, g_sName[id], charsmax(g_sName))
LoadZombie(id)
}

public client_disconnect(id)
{
g_sZombiesID[id] = zp_get_user_zombie_class(id)
SaveZombie(id)
}

public SaveZombie(id)
{
new szZombie[7], szKey[40]

formatex( szKey , charsmax( szKey ) , "%sZOMBIEID" , g_sName[id] );
formatex( szZombie , charsmax( szZombie ) , "%d" , g_sZombiesID[id] );

nvault_set( g_Vault , szKey , szZombie );
}

public LoadZombie(id)
{
new szKey[40];
formatex( szKey , charsmax( szKey ) , "%sZOMBIEID" , g_sName[id] );
new iZombieID = nvault_get( g_Vault , szKey );

if ( iZombieID )
{
g_sZombiesID[id] = iZombieID
nvault_remove( g_Vault , szKey );
}
else
{
g_sZombiesID[id] = 0
}
}

public zp_user_infected_pre(id)
{
if(zp_get_user_next_class(id) != -1)
{
g_sZombiesID[id] = zp_get_user_next_class(id)
}
else
{
zp_set_user_zombie_class(id, g_sZombiesID[id])
}
}

public event_DeathMsg()
{
new iKiller; iKiller = read_data(1)
new iVictim; iVictim = read_data(2)

if(iVictim == iKiller || !is_user_alive(iKiller))
return

g_sZombiesID[iVictim] = zp_get_user_zombie_class(iVictim)
}
Чтоб каждый раз вручную не выбирать класс зомби - этот плагин запоминал его и на следующей карте ставил предыдущий класс, все работало как надо, но потом я решил изменить описание одного из зомби через zp_zombieclasses.ini и плагин перестал работать, появились эти ошибки

Код:
L 08/07/2024 - 16:19:05: [AMXX] Run time error 10: native error (native "zp_class_zombie_set_next")
L 08/07/2024 - 16:19:05: [AMXX]    [0] zp50_zp43_compat2.sma::native_set_user_zombie_class (line 603)
L 08/07/2024 - 16:19:05: Unhandled dynamic native error
L 08/07/2024 - 16:19:05: [AMXX] Displaying debug trace (plugin "zp_zm_class_saver.amxx", version "1.0")
L 08/07/2024 - 16:19:05: [AMXX] Run time error 10: native error (native "zp_set_user_zombie_class")
L 08/07/2024 - 16:19:05: [AMXX]    [0] zp_zm_class_saver.sma::zp_user_infected_pre (line 75)
Менял zp_zombieclasses.ini обратно - все равно не сохраняет, фиг знает уже что делать и как починить
 

Download all Attachments

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

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