hi i have a problem i cant compile this code:
#define GetAsyncKeyState
#define VK_Numpad1
int Src = 8000000;
const int* pSrc = &Src;
{ if(GetAsyncKeyState(VK_Numpad1)) ;
{;
*(int*)0x377A2688 = 8000000;
*(int*)0x377743B8 = 8000000;
memcpy((void *)0x377A2688,pSrc,sizeof(int));
memcpy((void *)0x377743B8,pSrc,sizeof(int));
#define ADR_EXP 0x377A2688 //Party Hour
{ if(GetAsyncKeyState(VK_NUMPAD5) &1);
{;
*(long*) ADR_EXP = 8000000; //Unlimited Respawn
}
bool ghostmode;
int move8 = 0;
int move6 = 0;
int move4 = 0;
{ if(GetAsyncKeyState(VK_NUMPAD9)&1){
//Ghostmode
if(ghostmode==true){
while(true) {
if(GetAsyncKeyState(VK_UP)&1) {
move8+=1;
}
if(GetAsyncKeyState(VK_DOWN)&1) {
move8+=-1;
}
if(GetAsyncKeyState(VK_LEFT)&1) {
move4+=1;
}
if(GetAsyncKeyState(VK_RIGHT)&1) {
move4+=-1;
}
PushToConsole("CamMaxPosZOffset "+move8);
PushToConsole("CamMaxPosXOffset "+move6);
PushToConsole("CamMaxPosYOffset "+move4);
Sleep(100);
}
ghostmode=false;
} else {
move8=0;
move6=0;
move4=0;
PushToConsole("CamMaxPosZOffset 0");
PushToConsole("CamMaxPosXOffset 0");
PushToConsole("CamMaxPosYOffset 0");
ghostmode=true;
}
}
}
Debug Description:
1>------ Build started: Project: hexphack ca, Configuration: Debug Win32 ------
1> kod.cpp
1>c:\users\win 7\documents\visual studio 2010\projects\hexphack ca\hexphack ca\kod.cpp(7): error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\win 7\documents\visual studio 2010\projects\hexphack ca\hexphack ca\kod.cpp(64): fatal error C1004: unexpected end-of-file found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
i use Microsoft Visual C++ 2010 Express and dont know what to do please help I'M NEWBIE and where can I find a good track record make hacks for combat arms







thank you in advance
/////////////////////////////////////////////////////////////////////
sorry for my bad english im from poland