❓ Error

Posts 1–12 of 12 · Page 1 of 1
❓ Error
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
could it be that u just c&p that ?
and if u know c++ u will be able to solve lots of these problems .
ask Magicman for help .
ok thnx

Edit@

this is not my hack only learning
Quote Originally Posted by Zulikk995 View Post
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
Dude that code is messed up... do you have the dllmain and LTC function??

and why doing like this?

Code:
{	if(GetAsyncKeyState(VK_Numpad1))  ;
        {;
it shuld be like
Code:
{	if(GetAsyncKeyState(VK_Numpad1))  ;
        {
i use microsoft visual c++ 2012 express i niema w nim ani dllmain i ltc
im newbie and i dont know what to do i have dev C++ but he is stupid

code and error:

#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;
}
}
}

1>------ Build started: Project: xsd, Configuration: Debug Win32 ------
1> xd.cpp
1>c:\users\win 7\documents\visual studio 2010\projects\xsd\xsd\xd.cpp(7): error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\win 7\documents\visual studio 2010\projects\xsd\xsd\xd.cpp(65): fatal error C1004: unexpected end-of-file found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
what compilator and language you use ?
Quote Originally Posted by Zulikk995 View Post
i use microsoft visual c++ 2012 express i niema w nim ani dllmain i ltc
im newbie and i dont know what to do i have dev C++ but he is stupid

code and error:
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;
}
}
}

1>------ Build started: Project: xsd, Configuration: Debug Win32 ------
1>  xd.cpp
1>c:\users\win 7\documents\visual studio 2010\projects\xsd\xsd\xd.cpp(7): error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\win 7\documents\visual studio 2010\projects\xsd\xsd\xd.cpp(65): fatal error C1004: unexpected end-of-file found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
what compilator and language you use ?
there is a # button when you in advanced edit mode can you use that it's for posting code also post a screen shot ill try to help you
Double Click On Error And Look Where you Worng






>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>> I Know You Want Push IT
I check errors:

#define GetAsyncKeyState <== 2nd error
#define VK_Numpad1

int Src = 8000000;
const int* pSrc = &Src;

{ if(GetAsyncKeyState(VK_Numpad1)) ;<==== 1st error
{

*(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;
}
}
}

1<== 1>c:\users\win 7\documents\visual studio 2010\projects\xsd\xsd\xd.cpp(7): error C2447: '{' : missing function header (old-style formal list?)

2<==1>c:\users\win 7\documents\visual studio 2010\projects\xsd\xsd\xd.cpp(65): fatal error C1004: unexpected end-of-file found


please help and what compilator you use?
missing one } some where..
This code is a mess is this all of it ? I've corrected some errors but you have a fuckload in here. Post ALL your code

Code:
//#define GetAsyncKeyState <== WTF why are you defining these !
//#define VK_Numpad1 <== this makes no sense

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;
}
}
}
Quote Originally Posted by kelechi96 View Post
This code is a mess is this all of it ? I've corrected some errors but you have a fuckload in here. Post ALL your code

Code:
//#define GetAsyncKeyState <== WTF why are you defining these !
//#define VK_Numpad1 <== this makes no sense

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;
}
}
}
QFT.... this is it + come on Mr.Magicman u should have know
that u never can do this:
if(); <-
or this?
if();
{;
};

tough ; this means next line it doesnt work as prenouciation as a accolade

and ow yeah why define getasynkeystate and hotkeys those are already assigned where they are in C++.

and if u want to make a shorter define just do it like

#define hotkey GetAsyncKeyState // wait u cant its a int(like a void) with a return value. =-=
ok i have only 1 error :

//#define GetAsyncKeyState <== WTF why are you defining these !
//#define VK_Numpad1 <== this makes no sense
#define hotkey GetAsyncKeyState
int Src = 8000000;
const int* pSrc = &Src;

if(GetAsyncKeyState(VK_NUMPAD1)&1) Then
{

*(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;
}
}
}

error:
E:\CodeBlocks\projekty\hackcadllka\main.cpp|7|erro r: expected unqualified-id before "if"|
||=== Build finished: 1 errors, 0 warnings ==

and translator did not translate that well to me

////////////////////////////////////////////
Sory for my bad english im from poland/
Posts 1–12 of 12 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us