проблемы с get/set_member

Сообщения
459
Реакции
272
Помог
9 раз(а)
Ошибка
L 08/08/2019 - 23:36:24: Player 0 is not valid.
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5241 (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: Jan 30 2019 07:09:07
Built from: https://github.com/alliedmodders/amxmodx/commit/2110037
Build ID: 5241:2110037
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.6.0.672-dev
Build date: 17:31:06 Jun 5 2019 (1880)
Build from: https://github.com/dreamstalker/rehlds/commit/0c8d3d7
ReGamedll
ReGameDLL version: 5.9.0.366-dev
Build date: 15:46:24 Jul 30 2019
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/0104389
Версия 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] VoiceTranscoder RUN - vtc.so v2017RC3 ini ANY
[ 2] AMX Mod X RUN - amxmodx.so v1.9.0.5241 ini ANY
[ 3] Reunion RUN - reunion.so v0.1.0.133 ini Start Never
[ 4] Rechecker RUN - rechecker.so v2.5 ini ANY
[ 5] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5247 pl2 ANY
[ 6] CSX RUN - csx_amxx_i386.so v1.9.0.5247 pl2 ANY
[ 7] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5247 pl2 ANY
[ 8] ReAPI RUN - reapi_amxx_i386.so v5.9.0.178-dev pl2 ANY Never
[ 9] MySQL RUN - mysql_amxx_i386.so v1.9.0.5247 pl2 ANY
[10] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5247 pl2 ANY
[11] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5247 pl2 ANY
[12] Engine RUN - engine_amxx_i386.so v1.9.0.5247 pl2 ANY
12 plugins, 12 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] Admin Loader 3.5 neygomon admin_loader.am running
[ 2] FreshBans 1.4.0b kanagava fresh_bans.amxx running
[ 3] DopBan 2.8.2b kanagava dop_ban2.amxx running
[ 4] BhopHack Detector 0.1 Mistrick bhophack_detect running
[ 5] [b] Core 0.1.2 81x08 biohazard.amxx running
[ 6] Master Server Check 1.0 Salpson ms_check.amxx running
[ 7] Balance teams @1 Pirates! balanceteams.am running
[ 8] Show Breakable Killer 1.0 Pirates! breakable_kille running
[ 9] ban for reconnect @1 Pirates! anti_reconnect. running
[ 10] Slots Reservation @1 Pirates! admin_slots.amx running
[ 11] SQL MAIN INITS @1 Pirates! main_sql_inits. running
[ 12] Block Safe kill @1 Pirates! block_safekill. running
[ 13] Mute Menu @1 Pirates! menu_mute.amxx running
[ 14] Map Stats @1 Pirates! map_stats.amxx running
[ 15] Custom Knife Distance @1 Pirates! custom_knife_di running
[ 16] Chat Manager 1.1.1-11 Mistrick chatmanager.amx running
[ 17] Chat Manager: Addon 0.0.4-70 Mistrick chatmanager_add running
[ 18] Chat Web 0.1 GoZombi Server chatmanager_web running
[ 19] Bonuses @1 Pirates! player_bonuses. running
[ 20] human models @1 Pirates! human_models.am running
[ 21] Anti team & colored fl @1 Pirates! colorflash.amxx running
[ 22] Pop Grenades [ReAPI] 2. EFFx & HamletEag pop_grenade.amx running
[ 23] Level system @1 Pirates! level_system.am running
[ 24] ReChecker Logging 1.0 custom rc_logging.amxx running
[ 25] Show spec keys @1 Pirates! show_keys.amxx running
[ 26] Walls Creator 1.1 d3m37r4 walls_creator.a running
[ 27] Entity Remover 0.4 Exolent entity_remover. running
[ 28] Best round and map pla @1 Pirates! best_roundnmap. running
[ 29] nightvision @1 Pirates! nightvision.amx running
[ 30] UnstUck Player @1 Pirates! unstuck.amxx running
[ 31] Autounstuck on TP 1.0 beginner teleport_unstuc running
[ 32] Autoshot pistol @1 Pirates! autoshoot_pisto running
[ 33] Music manager 1.0.1 .cpCTRL music.amxx running
[ 34] Demorecorder @1 Pirates! demorecorder.am running
[ 35] Menu main @1 Pirates! menu_main.amxx running
[ 36] Menu settings @1 Pirates! menu_settings.a running
[ 37] Lang manage @1 Pirates! lang_manage.amx running
[ 38] Menu vip @1 Pirates! menu_vip.amxx running
[ 39] Menu admin @1 Pirates! menu_admin.amxx running
[ 40] Maps Menu 2.1 Pirates! menu_maps.amxx running
[ 41] Menu rcon @1 Pirates! menu_rcon.amxx running
[ 42] Players Menu 1.8 neygomon players_menu.am running
[ 43] [182] Map Spawns Edito 17.08.27 iG_os & SKAJIbnE MapSpawnsEditor running
[ 44] Block fast infect @1 Pirates! block_fast_infe running
[ 45] Remove droped weapons @1 Pirates! remove_weaponsn running
[ 46] Damager[b] @1 @Pirates! damager.amxx running
[ 47] Block & Hide money @1 Pirates! block_money.amx running
[ 48] Weapons MaxClip 0.3.0 ConnorMcLeod weapon_maxclip. running
[ 49] Map Manager: Core 3.0.0 Mistrick map_manager_cor running
[ 50] Map Manager: Scheduler 0.1.0 Mistrick map_manager_sch running
[ 51] Map Manager: Rtv 0.0.4 Mistrick map_manager_rtv running
[ 52] Map Manager: Nominatio 0.0.8 Mistrick map_manager_nom running
[ 53] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 54] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 55] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 56] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 57] Bio Stats @1 Pirates! bio_stats.amxx debug
[ 58] Real velocity @1 Pirates! bio_real_veloci running
[ 59] Remove Objectives @1 Pirates! bio_remove_obje running
[ 60] Block touch & Use @1 Pirates! bio_block_touch running
[ 61] Restore BP ammo @1 Pirates! bio_restore_bpa running
[ 62] Informer hud @1 Pirates! bio_informer.am running
[ 63] Napalm Nade @1 MeRcyLeZZ, Pirat napalm_nades.am debug
63 plugins, 63 running
Автор плагина
81x08
Версия плагина
0.1.2
Исходный код
-
Ошибка из строки плагина 1264. Выводил сам , других ошибок не вылезает

Проблема состоит не конкретно в этом плагине , а во всех где есть get/set_member, большая часть из офсетов не работает, и катал плагины вверх - вниз по списку в plugins, обновлял regamedll и reapi

Код:
et_pev(pevKiller, pev_frags, float(pev(pevKiller, pev_frags)) + float(g_cvarsData[CvarBonus_KillHuman]));
Код:
bestData[0] = floatround(Float: pev(bestId, pev_frags));
bestData[1] = get_pdata_int(bestId, 444, 5);

и многое другое, самое интересное то, что я попытался заменить это дело на fakemeta, безуспешно, ничего не выходит и не получается. (Если нужно будет, скину любой исходник предпологаемо связанный с проблемой сюда либо в л\с)
 

Вложения

Сообщения
459
Реакции
272
Помог
9 раз(а)
И где вы видели чтобы такой код работал? float(pev(pevKiller, pev_frags))

Код:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{     
    register_concmd("test", "test");
}

public test(id)
{
    set_pev(id, pev_frags, 1.0);
    new Float:a = Float:pev(id, pev_frags);
    new Float:b; pev(id, pev_frags, b);
    console_print(id, "a %f, b %f", a, b);
}
output
Код:
] test
a 0.000000, b 1.000000
За это благодарю. А как быть с остальным? пришлось многое заменить на fakemeta, get_member(ent, m_pActiveWeapon) -> get_pdata_cbase.. Ибо пишет ошибку, о том, что оффсета 373 не существует.

Инклуды при этом обновляли компилятору?
Да
 
Сообщения
1,701
Реакции
1,512
Помог
26 раз(а)
malniata, потому что он называется m_pActiveItem
 
  • Lol
Реакции: Ayk
Сообщения
459
Реакции
272
Помог
9 раз(а)
fl0wer, я перепутал название в теме.
 

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

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