Exclamation(Source Code Provided)Cant get my code to worl

Posts 1–5 of 5 · Page 1 of 1
(Source Code Provided)Cant get my code to worl
When ever i try to add this code:
//Speed x2
{if(GetAsyncKeyState(VK_NUMPAD1) &1<< 0xF){
*(float*)(Speed) = 200.0f;}}

//Speed x3
{if(GetAsyncKeyState(VK_NUMPAD2) &1<< 0xF){
*(float*)(Speed) = 300.0f;}}

//Speed x5
{if(GetAsyncKeyState(VK_NUMPAD3) &1<< 0xF){
*(float*)(Speed) = 500.0f;}}

//Speed Normal
{if(GetAsyncKeyState(VK_NUMPAD0) &1<< 0xF){
*(float*)(Speed) = 100.0f;}}
//Extra Ammo A
{*(int*)(Extra_Ammo_1) = 1;}

//Extra Ammo S
{*(int*)(Extra_Ammo_2) = 1;}

//No Spread
{*(float*) No_Spread = 0;}
and these addresses:
PX_ExtraAmmo 0x00BAAD31
PX_ExtraAmmo2 0x00BAAD32
OFS_X 0x00102D4
OFS_Y 0x00102DC
into my current source code
#include <windows.h>
#include <stdio.h>

//-------------------Define Hacks----------------------//

#define Playerpointer 0xD284E8
#define Serverpointer 0xC24B10
#define OFS_Z 0x102D8
#define NFD_Player_OffSet 0x103A4
#define OFS_NORECOIL1 0x001C
#define OFS_NORECOIL2 0x0020
#define OFS_NORECOIL3 0x0024


//------------------End Define Adddies-----------------//

//--------------------------Define HackThread--------------------------//

DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;

//--------------------------End Define HackThread--------------------------//

//--------------------------Start Hacks--------------------------//

void PlayerHacks() // Start PlayerHacks
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0){

//No Recoil
{*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;}

//End No Recoil

//Superjump

{if(GetAsyncKeyState(VK_CONTROL) &1){
*(float*)(dwPlayerPtr+OFS_Z) = 1000;}}

//End Superjump

// No Fall Damage

{*(float*)(dwPlayerPtr+NFD_Player_OffSet) = -20000;}

//End No Fall Damage

}} //End PlayerHacks

void ServerHacks() // Start ServerHacks
{
DWORD dwSrvrPtr=*(DWORD*)Serverpointer;
if(dwSrvrPtr!=0){

}} //End ServerHacks

//--------------------------End Hacks--------------------------//

//-------------------------HackThread--------------------------//

void Hacks(){
for(;{
PlayerHacks();
ServerHacks();
Sleep(20);}}

//--------------------------End HackThread--------------------------//

//--------------------------End--------------------------//

BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res){
switch(DWORD_GRUND){
case 1:
ShellExecuteA(NULL,"Open","http://www.sealteamvi.*********/",NULL,NULL,1);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Hacks , 0, 0, 0);
break;
case 2:
break;}
return TRUE;}

//--------------------------End--------------------------//
//credits go to [Tutorial] WarRock NoMenu Hack [Date = 2 sept 2010] - Gamerz Needs - For All Your Gaming Needs! for helping me create this main.cpp
I go to built it and it says that it failed. Can anyone help me out on this because this is my first non menu hack
Give more info on the error...
Code:
#include <windows.h>
#include <stdio.h>

//-------------------Define Hacks----------------------//

#define Playerpointer 0xD284E8
#define Serverpointer 0xC24B10
#define OFS_Z 0x102D8
#define NFD_Player_OffSet 0x103A4
#define OFS_NORECOIL1 0x001C
#define OFS_NORECOIL2 0x0020
#define OFS_NORECOIL3 0x0024
#define Speed 0x00A4B8D4
#define No_Spread 0x00BAAD4C
#define Extra_Ammo_1 0x00BAAD31
#define Extra_Ammo_2 0x00BAAD32
//------------------End Define Adddies-----------------//

//--------------------------Define HackThread--------------------------//

DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;

//--------------------------End Define HackThread--------------------------//

//--------------------------Start Hacks--------------------------//

void PlayerHacks() // Start PlayerHacks
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0){

//No Recoil
{*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;}

//Speed x2
{if(GetAsyncKeyState(VK_NUMPAD1) &1<< 0xF){
*(float*)(Speed) = 200.0f;}}

//Speed x3
{if(GetAsyncKeyState(VK_NUMPAD2) &1<< 0xF){
*(float*)(Speed) = 300.0f;}}

//Speed x5
{if(GetAsyncKeyState(VK_NUMPAD3) &1<< 0xF){
*(float*)(Speed) = 500.0f;}}

//Speed Normal
{if(GetAsyncKeyState(VK_NUMPAD0) &1<< 0xF){
*(float*)(Speed) = 100.0f;}}
//Extra Ammo A
{*(int*)(Extra_Ammo_1) = 1;}

//Extra Ammo S
{*(int*)(Extra_Ammo_2) = 1;}

//No Spread
{*(float*) No_Spread = 0;} 
//End No Recoil

//Superjump

{if(GetAsyncKeyState(VK_CONTROL) &1){
*(float*)(dwPlayerPtr+OFS_Z) = 1000;}}

//End Superjump

// No Fall Damage

{*(float*)(dwPlayerPtr+NFD_Player_OffSet) = -20000;}

//End No Fall Damage

}} //End PlayerHacks

void ServerHacks() // Start ServerHacks
{
DWORD dwSrvrPtr=*(DWORD*)Serverpointer;
if(dwSrvrPtr!=0){

}} //End ServerHacks

//--------------------------End Hacks--------------------------//

//-------------------------HackThread--------------------------//

void Hacks(){
for(;{
PlayerHacks();
ServerHacks();
Sleep(20);}}

//--------------------------End HackThread--------------------------//

//--------------------------End--------------------------//

BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res){
switch(DWORD_GRUND){
case 1:
ShellExecuteA(NULL,"Open","http://www.MPGH.net",NULL,NULL,1);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Hacks , 0, 0, 0);
break;
case 2:
break;}
return TRUE;}

//--------------------------End--------------------------//

Here..
Try this out :
- create a new Project and insert the source code
-Check the source code for errors
-try to use another No Menu Base ( look at the Source Code Section )
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

Talk with us