_ReturnAddress" is undefined
So I'm pasting for my first time and I dont know much cpp but I keep on getting this error and dont know how to fix it!
E0020 "identifier "_ReturnAddress" is undefined" Hooks.cpp
Error C3861" '_ReturnAddress': identifier not found" Hooks.cpp
I have tried to include intrin.h but when I do that I just get 83 new errors. Can anoyone help me?
Its Ayyware and the only think I removed is RageBot
Code:
if (Menu::Window.VisualsTab.OtherNoVisualRecoil.GetState() && (DWORD)(_ReturnAddress()) == Offsets::Functions::dwCalcPlayerView)
{
IClientEntity* pLocalEntity = NULL;
float* m_LocalViewAngles = NULL;
__asm
{
MOV pLocalEntity, ESI
MOV m_LocalViewAngles, EBX
}
Vector viewPunch = pLocalEntity->localPlayerExclusive()->GetViewPunchAngle();
Vector aimPunch = pLocalEntity->localPlayerExclusive()->GetAimPunchAngle();
m_LocalViewAngles[0] -= (viewPunch[0] + (aimPunch[0] * 2 * 0.4499999f));
m_LocalViewAngles[1] -= (viewPunch[1] + (aimPunch[1] * 2 * 0.4499999f));
m_LocalViewAngles[2] -= (viewPunch[2] + (aimPunch[2] * 2 * 0.4499999f));
return true;
}
return result;
}