dialog input

Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
((samp.dll+0x212A40)+0x34) = dialog text
(samp.dll+0x212A40)+0x40 = caption text
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Code:
DWORD dialogPtr = *(DWORD*)(sampBase + 0x212A40);
if (dialogPtr != NULL) {
	int isActive = *(int*)(dialogPtr + 0x28);
	if (isActive) {
		char *text = (char*)*(DWORD*)(dialogPtr + 0x34);
		AddMessageToChatWindow(color, text);
	}
}

If you use mod_sa, just use g_Dialog struct.
Code:
if (g_Dialog->iDialogShowed)
	char *text = g_Dialog->pszText;
 

imanuel1322

Member
Joined
Nov 12, 2014
Messages
15
Reaction score
0
springfield link said:
Code:
DWORD dialogPtr = *(DWORD*)(sampBase + 0x212A40);
if (dialogPtr != NULL) {
	int isActive = *(int*)(dialogPtr + 0x28);
	if (isActive) {
		char *text = (char*)*(DWORD*)(dialogPtr + 0x34);
		AddMessageToChatWindow(color, text);
	}
}

If you use mod_sa, just use g_Dialog struct.
Code:
if (g_Dialog->iDialogShowed)
	char *text = g_Dialog->pszText;

not working !@!
code:
http://pastebin.com/AujppdSZ
 
Top