Вопрос Exception in fsn

Начинающий
Статус
Оффлайн
Регистрация
15 Окт 2021
Сообщения
46
Реакции[?]
5
Поинты[?]
2K
Код:
static DWORD* death_notice = nullptr;



    if (g_ctx.local()->is_alive())

    {

        if (!death_notice)

            death_notice = util::FindHudElement <DWORD>(crypt_str("CCSGO_HudDeathNotice"));



        if (death_notice)

        {

            auto local_death_notice = (float*)((uintptr_t)death_notice + 0x50);



            if (local_death_notice)

                *local_death_notice = g_cfg.esp.preserve_killfeed ? FLT_MAX : 1.5f



            if (g_ctx.globals.should_clear_death_notices)

            {

                g_ctx.globals.should_clear_death_notices = false;



                using Fn = void(__thiscall*)(uintptr_t);

                static auto clear_notices = (Fn)util::FindSignature(crypt_str("client.dll"), crypt_str("55 8B EC 83 EC 0C 53 56 8B 71 58"));



                clear_notices((uintptr_t)death_notice - 0x14);

            }

        }

    }

    else

        death_notice = 0;

}
Exception thrown at 0x2A527473 (client.dll) in csgo.exe: 0xC0000005: Access violation reading location 0x00000098.
 
get good get legendware
Участник
Статус
Оффлайн
Регистрация
22 Сен 2020
Сообщения
435
Реакции[?]
200
Поинты[?]
47K
change this
C++:
 clear_notices((uintptr_t)death_notice - 0x14);
to
C++:
if (clear_notices && death_notice)
     clear_notices((uintptr_t)death_notice - 0x14);
and if you're not crashing anymore but death notice is not working then your sigs are outdate :p
 
Сверху Снизу