-
MemEdit Identifer
Well,im making my menu hack and i get an error as MemEdit isnt a valid Identifer
This is my code
Code:
void RenderFrame(void){
if( b[8] == 1 )//Wall Removers
memEdit((LPVOID)0x57207A, "\x6A\x00", 2);
else
memEdit((LPVOID)0x57207A, "\x6A\x01", 2);
if( b[2] > 0 ){//no Recoil
memEdit((LPVOID)0x3741B550, "\x90\x90\x90", 3);
memEdit((LPVOID)0x3740BAA9, "\x90\x90\x90", 3);
memEdit((LPVOID)0x3741B564, "\x90\x90\x90", 3);
memEdit((LPVOID)0x3741B567, "\x90\x90\x90", 3);
memEdit((LPVOID)0x3741B570, "\x90\x90\x90", 3);
}else{
memEdit((LPVOID)0x3741B550, "\xD8\x66\x54", 3);
memEdit((LPVOID)0x3740BAA9, "\xD9\x46\x54", 3);
memEdit((LPVOID)0x3741B564, "\xD9\x5E\x54", 3);
memEdit((LPVOID)0x3741B567, "\xD9\x46\x48", 3);
memEdit((LPVOID)0x3741B570, "\xD9\x5E\x48", 3);
}
if (b[3] > 0)
memEdit((LPVOID)0x37467294, "\x90\x90\x90\x90\x90\x90", 6);
else
memEdit((LPVOID)0x37467294, "\x0F\x84\xB1\x01\x00\x00", 6);
}
And here is my error
Code:
------ Build started: Project: CodeDemonD3Dbase, Configuration: Release Win32 ------
D3DBase.cpp
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(101): error C2065: 'b' : undeclared identifier
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(102): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(104): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(106): error C2065: 'b' : undeclared identifier
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(107): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(108): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(109): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(110): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(111): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(113): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(114): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(115): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(116): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(117): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(120): error C2065: 'b' : undeclared identifier
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(121): error C3861: 'memEdit': identifier not found
c:\users\owner-1\desktop\codedemons base\codedemond3dbase\codedemond3dbase\Functions.h(123): error C3861: 'memEdit': identifier not found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Do you no how i can fix the MemEdit Idenfier?
P.S-THANKS MPGH XD
-
Add this
Code:
bool memEdit( void * pDest, char * szPatch, size_t sSize ) //Nopping Method
{
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}
-
use memoria or memcpy, you need a NOP method (if it isn't set for memedit, then edit your NOP method)
EDIT: coryster added the memedit NOP method, and HOLY **** IT'S CORYSTER, YOU WILL DIE! unless it's a poser /tehe
-
Stop fucking saying this is just a No Operation function its a fucking byte modifier you could make all sorts of byte modifications with this one including NOP