🙁 Can someone Help me with my Code O.o

Posts 1–7 of 7 · Page 1 of 1
🙁 Can someone Help me with my Code O.o
Can someone please help me what i did wrong i got confused O.o


Code:
#include "StdAfx.h"
#include <windows.h>
#include <stdio.h>

#define Playerpointer					0x00AEE310  
#define Serverpointer					0x009E8930	
#define OFS_Z						0x00102E8
#define NFD_Player_OffSet				0x00102C8
#define Premium_OffSet				0x001C3C
#define OFS_PREMIUM2					0x001C40



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




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



} 

void ServerHacks()

DWORD dwSrvrPtr=*(DWORD*)Serverpointer;
if(dwSrvrPtr!=0){



} 


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


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



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



} 

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


{*(long*)(dwSrvrPtr+Premium_OffSet) = 4, 10;{
*(float*)(dwSrvrPtr+OFS_PREMIUM2) = 1, 1;}}



} 


void HackThread() 
{
for(;; ) 
{
if(*ingame)
{
PlayerHacks();
}
if(*outgame)
{
ServerHacks();
}

Sleep(200); 
}



BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{

CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}

im really confused >.<
im new to coding
i got these errors
and btw, i am using Visual C++ 2010 Express Edition
these are my errors:

Code:
1>------ Build started: Project: My DLL, Configuration: Debug Win32 ------
1>  main.cpp
1>d:\station01\my documents\visual studio 2010\projects\my dll\my dll\main.cpp(32): error C2601: 'ServerHacks' : local function definitions are illegal
1>d:\station01\my documents\visual studio 2010\projects\my dll\my dll\main.cpp(23): this line contains a '{' which has not yet been matched
1>d:\station01\my documents\visual studio 2010\projects\my dll\my dll\main.cpp(107): fatal error C1075: end of file found before the left brace '{' at 'd:\station01\my documents\visual studio 2010\projects\my dll\my dll\main.cpp(80)' was matched
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

can someone please help me and please correct me? D:

BIG THANKS TO THOSE WHO WILL HELP ME
Quote Originally Posted by razerleaf View Post

Code:

void HackThread() 
{
for(;; ) 
{
if(*ingame)
{
PlayerHacks();
}
if(*outgame)
{
ServerHacks();
}
Sleep(200); 
}
}
}



That's the only problem...
how come? O.o

so,,
should i remove it? O.o



EDIT: NEVERMIND... i just solved my problem
though i get gamehack detected when i injected it
thanks for you help [W]eb[C]ombat
i think i just nid the updated addies ^^
Quote Originally Posted by razerleaf View Post
how come? O.o

so,,
should i remove it? O.o



EDIT: NEVERMIND... i just solved my problem
though i get gamehack detected when i injected it
thanks for you help [W]eb[C]ombat
i think i just nid the updated addies ^^
No problem... btw, if your making a WR-PH Hack and it's working... well don't tell or spread how you do it. Just reminding.
Quote Originally Posted by [W]eb[C]ombat View Post
No problem... btw, if your making a WR-PH Hack and it's working... well don't tell or spread how you do it. Just reminding.
hahaha yea i know ^^
maybe ill just release one
for fun
or maybe just MAYBE ^^
oh well..
i have to GOOGLE how to find addies again
hahaha
damn finding addies is a lot of work
especially when
the tuts says ecx but in the WR-PH's memory is esi
or sumthing like that
some tuts dont actually fit >.<
Quote Originally Posted by razerleaf View Post
hahaha yea i know ^^
maybe ill just release one
for fun
or maybe just MAYBE ^^
oh well..
i have to GOOGLE how to find addies again
hahaha
damn finding addies is a lot of work
especially when
the tuts says ecx but in the WR-PH's memory is esi
or sumthing like that
some tuts dont actually fit >.<
nice nice nice
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us