c++ dialog

mrT101

Active member
Joined
Feb 18, 2014
Messages
58
Reaction score
0
I'm wondering if there is a way to make a list dialog in samp without using cleo/sampfuncs?
 

mrT101

Active member
Joined
Feb 18, 2014
Messages
58
Reaction score
0
thanks for the reply, but im not sure if that code applies since i think it would be server side and i need a clientside function
 

Steezy

Active member
Joined
Jul 26, 2013
Messages
111
Reaction score
0
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;
}
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
175
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;
}
More C+P for the nation!
 

Steezy

Active member
Joined
Jul 26, 2013
Messages
111
Reaction score
0
I just found that on a russian site..
Thought it was right.
 
Top