Estou com esse erro alguem que possa solucionalo?
Por jse possivel postar sem erro...
Code:
1>------ Build started: Project: CA Base D3D Menu Selection, Configuration: Debug Win32 ------
1>Compiling...
1>Hack.cpp
1>d:\games\login ca\visual basic project\ca base d3d menu selection\hack.cpp(183) : error C2601: 'Hook' : local function definitions are illegal
1> d:\games\login ca\visual basic project\ca base d3d menu selection\hack.cpp(63): this line contains a '{' which has not yet been matched
1>d:\games\login ca\visual basic project\ca base d3d menu selection\hack.cpp(199) : fatal error C1075: end of file found before the left brace '{' at 'd:\games\login ca\visual basic project\ca base d3d menu selection\hack.cpp(63)' was matched
1>Build log was saved at "file://d:\Games\Login CA\Visual Basic Project\CA Base D3D Menu Selection\Debug\BuildLog.htm"
1>CA Base D3D Menu Selection - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Code:
}
}
if((*(BYTE *)GameStatus == 1) && Rapidfire == 1 && GetAsyncKeyState(VK_LBUTTON)<0) {
memcpy((VOID *)RapidFire, (VOID *)(PBYTE)"\x90\x90", 3);
} else if((*(BYTE *)GameStatus == 1) && Rapidfire == 2) {
memcpy((VOID *)RapidFire, (VOID *)(PBYTE)"\x90\x90", 3);
} else {
memcpy((VOID *)RapidFire, (VOID *)(PBYTE)"\x74\x3E", 3);
if((*(BYTE *)GameStatus == 1) && Recoil)
memcpy((VOID *)NoRecoil, (VOID *)(PBYTE)"\x90\x90\x90\x90", 2);
else
memcpy((VOID *)NoRecoil, (VOID *)(PBYTE)"\xD9\x44\x24\x14", 2);
if(Cross) CrossHair(pDevice, Red);
if(FPS && !bFPS) {
ComandoPush("ShowFPS 1");
bFPS = 1;
} else if(!FPS && bFPS) {
ComandoPush("ShowFPS 0");
bFPS = 0;
}
return oPresent(pDevice, a, b, c, d);
}
DWORD WINAPI Hook(LPVOID lpArgs)
{
DWORD dwD3D9 = 0;
while(!dwD3D9) {
Sleep(100);
dwD3D9 = (DWORD)GetModuleHandle("d3d9.dll");
}
DWORD dwVTable[1] = {0};
CreateDevice(dwVTable);
oReset = (tReset) DetourCreate((PBYTE) dwVTable[0], (PBYTE) &hkReset, 5);
oPresent = (tPresent)DetourCreate((PBYTE) dwVTable[1], (PBYTE) &hkPresent, 5);
return FALSE;
}