Here is my code
Code:
#define Playerpointer 0x00CC8A00
#define Serverpointer 0x00BD2130
#define Fast_Ammo 0x00B08250
#define Fast_Health 0x00B08254
#define Fast_Repair 0x00B08258
#define Fast_Flag 0x00B0825C
#define No_Spread 0x00B082B0
#define Speed 0x009ABE04
#define Stamina_OffSet 0x0000001C
#define NoRecoil_1_OffSet 0x00000000
#define NoRecoil_2_OffSet 0x00000004
#define NoRecoil_3_OffSet 0x00000008
#define OFS_X 0x00000248
#define OFS_Y 0x00000250
#define OFS_Z 0x0000024C
#define Slot5_OffSet 0x000D11EC
#define NFD_Player_OffSet 0x00000314
#define Premium_OffSet 0x00000374
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
//////////// Hack Codes \\\\\\
void FastAll ()
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)Fast_Repair = 10;
*(float*)Fast_Health = 5;
*(float*)Fast_Flag = 10;
*(float*)Fast_Ammo = 5;
}}
void speedon ()
{
if(GetAsyncKeyState(VK_NUMPAD1) &1)
{
*(float*)(Speed) = 300;
}
}
void speedoff ()
{
if(GetAsyncKeyState(VK_NUMPAD0) &1)
{
*(float*)(Speed) = 100;
}
}
void jump ()
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 1000;
}
}
}
void stamina () /////Unl.Stamina
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+Stamina_OffSet) = 100;
}
}
void norecoil () /////No Recoil
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+0x00) = 0;
*(float*)(dwPlayerPtr+0x04) = 0;
*(float*)(dwPlayerPtr+0x0 = 0;
}
}
void nfd ()
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+NFD_Player_OffSet) = -20000;
}
}
void premium () //Gold Premium
{
DWORD dwPlayerPtr = *(DWORD*)Serverpointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+Premium_OffSet) = 3, 10; /////3 = Gold Premium
}
}
void spread () /////No Spread
{
*(float*) No_Spread = 0;
}
void Slots5 ()
{
DWORD dwPlayerPtr = *(DWORD*)Serverpointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+Slot5_OffSet) = 1;
}
}
/////////hackthread\\\\\
void HackThread()
{
for(;; )
{
if(*ingame)
{
jump();
nfd();
premium();
spread();
norecoil();
stamina();
speedon();
speedoff();
FastAll();
Slots5();
}
if(*outgame)
{
premium();
Slots5();
}
}
Sleep(200);
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0); //create the hackthread
}
return TRUE;
}
Here is what it says wrong im new to C++
1>------ Build started: Project: zycohack, Configuration: Debug Win32 ------
1>Compiling...
1>HACK.cpp
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(24) : error C2143: syntax error : missing ';' before '*'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(24) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(24) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(24) : error C2059: syntax error : ')'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(25) : error C2143: syntax error : missing ';' before '*'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(25) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(25) : error C2086: 'int DWORD' : redefinition
1> c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(24) : see declaration of 'DWORD'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(25) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(25) : error C2059: syntax error : ')'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(31) : error C2146: syntax error : missing ';' before identifier 'dwPlayerPtr'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(31) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(31) : error C2059: syntax error : ')'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(32) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(42) : error C2065: 'VK_NUMPAD1' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(42) : error C3861: 'GetAsyncKeyState': identifier not found
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(50) : error C2065: 'VK_NUMPAD0' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(50) : error C3861: 'GetAsyncKeyState': identifier not found
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(58) : error C2065: 'VK_CONTROL' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(58) : error C3861: 'GetAsyncKeyState': identifier not found
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(60) : error C2146: syntax error : missing ';' before identifier 'dwPlayerPtr'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(60) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(60) : error C2059: syntax error : ')'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(61) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(63) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(70) : error C2146: syntax error : missing ';' before identifier 'dwPlayerPtr'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(70) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(70) : error C2059: syntax error : ')'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(71) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(73) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(79) : error C2146: syntax error : missing ';' before identifier 'dwPlayerPtr'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(79) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(79) : error C2059: syntax error : ')'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(80) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(82) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(83) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(84) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(84) : error C2143: syntax error : missing ')' before ';'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(90) : error C2146: syntax error : missing ';' before identifier 'dwPlayerPtr'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(90) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(90) : error C2059: syntax error : ')'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(91) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(93) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(99) : error C2146: syntax error : missing ';' before identifier 'dwPlayerPtr'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(99) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(99) : error C2059: syntax error : ')'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(100) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(102) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(113) : error C2146: syntax error : missing ';' before identifier 'dwPlayerPtr'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(113) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(113) : error C2059: syntax error : ')'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(114) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(116) : error C2065: 'dwPlayerPtr' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(145) : error C3861: 'Sleep': identifier not found
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(148) : error C2146: syntax error : missing ';' before identifier 'WINAPI'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(148) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(148) : error C2146: syntax error : missing ';' before identifier 'DllMain'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(148) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(148) : error C2065: 'HINSTANCE' : undeclared identifier
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(148) : error C2146: syntax error : missing ')' before identifier 'hModule'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(148) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(148) : error C2059: syntax error : ')'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(149) : error C2143: syntax error : missing ';' before '{'
1>c:\users\fraser\documents\visual studio 2008\projects\zycohack\zycohack\hack.cpp(149) : error C2447: '{' : missing function header (old-style formal list?)
1>Build log was saved at "file://c:\Users\Fraser\Documents\Visual Studio 2008\Projects\zycohack\zycohack\Debug\BuildLog.htm "
1>zycohack - 63 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========