Hello. I'm new to this forum and I'm here just because I were googling samp chat messages memory address for half day and found nothing... So I see this forum is for samp hacking and I want to ask you maybe somebody knows last chat message memory address? I tried using memory address in this page: http://www.gtamodding.com/index.php?tit ... sses_(SAMP )
So that would be: 0xEFF68 + 0x152 + (0xFC * index )
Here is my c++ code:
And this is what I get when I run my c++ application:
So I think that memory address is wrong, because in that site is wrote:
Current samp version is 0.3x. So maybe somebody knows last chat message memory address or already have code in c++ language or any other to read chat messages?
So that would be: 0xEFF68 + 0x152 + (0xFC * index )
Here is my c++ code:
Code:
#include <iostream>
#include <Windows.h>
using namespace std;
int main()
{
int newValue = 500;
HWND hWnd = FindWindow(0, "GTA:SA:MP");
if(hWnd == 0){
cerr << "Cannot find window!" << endl;
}else{
DWORD pId;
GetWindowThreadProcessId(hWnd, &pId);
HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, false, pId);
if(!hProc){
cerr << "Cannot open process." << endl;
}else{
DWORD pointer = 0xEFF68 + (0xFC * 1);
char lastmsg[1024];
ReadProcessMemory(hProc, (LPVOID)(pointer), &lastmsg, sizeof(char) * sizeof(lastmsg), NULL);
cout << lastmsg << endl;
}
}
system("pause");
return 0;
}
And this is what I get when I run my c++ application:
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????N?
Press any key to continue . . .
So I think that memory address is wrong, because in that site is wrote:
SAMP 0.3b R3 Client
Current samp version is 0.3x. So maybe somebody knows last chat message memory address or already have code in c++ language or any other to read chat messages?