void showSampDialog(int send, int dialogID, int typedialog, char *caption, char *text, char *button1, char *button2)
{
uint32_t func = g_dwSAMP_Addr+SAMP_DIALOG_SHOW;
uint32_t data = g_dwSAMP_Addr+SAMP_DIALOG_INFO_OFFSET;
__asm mov eax, dword ptr [data]
__asm mov ecx, dword ptr [eax] //mov to offset
__asm push send //0 - No send response, 1 - Send response
__asm push button2
__asm push button1
__asm push text
__asm push caption
__asm push typedialog
__asm push dialogID
__asm call func
return;
}
More C+P for the nation!Steezy link said:Code:void showSampDialog(int send, int dialogID, int typedialog, char *caption, char *text, char *button1, char *button2) { uint32_t func = g_dwSAMP_Addr+SAMP_DIALOG_SHOW; uint32_t data = g_dwSAMP_Addr+SAMP_DIALOG_INFO_OFFSET; __asm mov eax, dword ptr [data] __asm mov ecx, dword ptr [eax] //mov to offset __asm push send //0 - No send response, 1 - Send response __asm push button2 __asm push button1 __asm push text __asm push caption __asm push typedialog __asm push dialogID __asm call func return; }
0x212A40 R1 :dont_care:Thomas_Johnson link said:Can I get SAMP_DIALOG_INFO_OFFSET?