Вопрос Почему мой код работает не работает?

Начинающий
Статус
Оффлайн
Регистрация
31 Май 2021
Сообщения
4
Реакции[?]
0
Поинты[?]
0
Буквально вчера он работал нормально, потом pymem начал выдавать 998 ошибку. Сегодня он вообще не работает(как я выяснил он не читает переменную entity. У меня с ПК что то не так? Или это Python шалит?
Python:
import pymem, requests, time
from  threading import Thread

pm = pymem.Pymem("csgo.exe")
client = pymem.process.module_from_name(pm.process_handle, "client.dll").lpBaseOfDll


def offsets():
    global dwGlowObjectManager, dwLocalPlayer, dwEntityList, m_iTeamNum, m_iGlowIndex,m_flash_duration

    offsets = 'https://raw.githubusercontent.com/frk1/hazedumper/master/csgo.json'
    response = requests.get(offsets).json()

    dwGlowObjectManager = int(response["signatures"]["dwGlowObjectManager"])
    dwEntityList = int(response["signatures"]["dwEntityList"])
    dwLocalPlayer = int(response["signatures"]["dwLocalPlayer"])

    m_iTeamNum = int(response["netvars"]["m_iTeamNum"])
    m_iGlowIndex = int(response["netvars"]["m_iGlowIndex"])
    m_flash_duration = int(response["netvars"]["m_flFlashDuration"])
    print(dwGlowObjectManager, dwLocalPlayer, dwEntityList, m_iTeamNum, m_iGlowIndex,m_flash_duration)
offsets()


print("Starting ARLEQUINUM...")


def local_player():
    player = pm.read_int(client + dwLocalPlayer)
    return player


def antiflash():
    print("Launching antiflash")
    while True:
        pm.write_int(local_player() + m_flash_duration, int(0))


Thread(target=antiflash).start()

def ESP():
    print("Launching ESP")

    while True:
        glow_manager = pm.read_long(client + dwGlowObjectManager)

        if (local_player()):
            team = pm.read_int(local_player() + m_iTeamNum)
            #print(1)

            for i in range(1,32):
                entity = pm.read_uint(client + dwEntityList + i * 0x10)
                #print(entity)
                if (entity):
                    entity_team_id = pm.read_uint(entity + m_iTeamNum)
                    #print(entity_team_id)
                    entity_glow = pm.read_uint(entity + m_iGlowIndex)
                    #print(entity_glow)

                    if (entity_team_id != team):
                        pm.write_float(glow_manager + entity_glow * 0x38 + 0x8, float(0))
                        pm.write_float(glow_manager + entity_glow * 0x38 + 0xC, float(1))
                        pm.write_float(glow_manager + entity_glow * 0x38 + 0x10, float(0))
                        pm.write_float(glow_manager + entity_glow * 0x38 + 0x14, float(1))

                        pm.write_uint(glow_manager + entity_glow * 0x38 + 0x28, 1)
                    else:
                        pm.write_float(glow_manager + entity_glow * 0x38 + 0x8, float(0))
                        pm.write_float(glow_manager + entity_glow * 0x38 + 0xC, float(0))
                        pm.write_float(glow_manager + entity_glow * 0x38 + 0x10, float(1))
                        pm.write_float(glow_manager + entity_glow * 0x38 + 0x14, float(1))

                        pm.write_int(glow_manager + entity_glow * 0x38 + 0x28, 1)


        time.sleep(0.01)
Thread(target=ESP).start()
 
Сверху Снизу