NewYorker
Member
Hello, I have such a code, but I could not use it in my project because I do not have much knowledge about dialogue. I tried a few times with Show_Dialog, but my game crashed every time. (0.3DL) Can you help me use it?
C++:
#define SAMP_DIALOG_INFO_OFFSET 0x2AC9E0
#define SAMP_DIALOG_SHOW_OFFSET 0x6FA50
void Show_Dialog(UINT16 wDialogID, UINT8 bDialogStyle, char* szTitle, char* szButton1, char* szButton2, char* szInfo)
{
if (g_SAMP == NULL) return;
{
void* Connection = *(void**)(g_dwSAMP_Addr + SAMP_DIALOG_INFO_OFFSET);
((void(__thiscall*)
(void*, int, int, char*, char*, char*, char*)) (g_dwSAMP_Addr + SAMP_DIALOG_SHOW_OFFSET))(Connection, wDialogID, bDialogStyle, szTitle, szButton1, szButton2, szInfo);
}
}