Ok I have coded and updated the addies (I think). I just need help in figuring out what's wrong. Everything compiles right, I can play in-game and all my other hacks work except speed, any help?
Addie
Code:
#define ADR_SPEED 0x84AEB8
Speed
Code:
void speed()
{
DWORD dwPlayerpointer = *(DWORD*)Addr_Playerpointer;
if(dwPlayerpointer != 0)
{
if(GetAsyncKeyState(VK_NUMPAD1) &1<< 0xF){
*(float*)(ADR_SPEED) = 200.0f;} //X2
{
if(GetAsyncKeyState(VK_NUMPAD2) &1<< 0xF){
*(float*)(ADR_SPEED) = 300.0f;} //X3
{
if(GetAsyncKeyState(VK_NUMPAD3) &1<< 0xF){
*(float*)(ADR_SPEED) = 500.0f;} //X5
{
if(GetAsyncKeyState(VK_NUMPAD0) &1<< 0xF){
*(float*)(ADR_SPEED) = 100.0f;} //Normal
}
}
}
}
}
Any ideas?