Начинающий
-
Автор темы
- #1
выводит ошибку
и memory.h
C++:
void render()
{
g_Device->Clear(0, nullptr, D3DCLEAR_TARGET, D3DCOLOR_ARGB(0, 0, 0, 0), 1, 0);
g_Device->BeginScene();
float viewMatrix[4][4];
DWORD pLocal = mem.Read<DWORD>(bClient.dwBase + dwLocalPlayer);
DWORD localHp = mem.Read<DWORD>(pLocal = m_iHealth);
DWORD localTeam = 0;
DWORD pEntity = 0;
DWORD entHp = 0;
DWORD entTeam = 0;
D3DXVECTOR3 entPos(0, 0, 0);
D3DXVECTOR2 entScreen(0, 0);
if (!localHp)
goto end;
localTeam = mem.Read<DWORD>(pLocal + m_iTeamNum);
mem./*тут ошибка где .*/Read(LPCVOID(bClient.dwBase + dwViewMatrix), LPVOID(viewMatrix), sizeof(float) * 16);
for (int i = 0; i < 64; i++)
{
}
end:
g_Device->EndScene();
g_Device->Present(nullptr, nullptr, nullptr, nullptr);
}
C++:
template <class T>
T Read(const DWORD dwAddress)
{
T _read;
ReadProcessMemory(process, LPVOID(dwAddress), &_read, sizeof(T), NULL);
return _read;
}
template <class T>
void Write(const DWORD dwAdress, const T value)
{
WriteProcessMemory(process, LPVOID(dwAdress), &value, sizeof(T), NULL);
}