🙁 Can someone Help me with my Code O.o
Can someone please help me what i did wrong i got confused O.o
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:
can someone please help me and please correct me? D:
BIG THANKS TO THOSE WHO WILL HELP ME
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



