Hmm, i always thought that opcode replaces the listitem text. But after testing it out, it actually selects the listitem for you. In theory, if i combine it with 0B47: SAMP CLOSE_CURRENT_DIALOG_WITH_BUTTON 1 it should fix the problem. Once again big thanks man. You might want to change 0AB1...
Surprisingly that snippet works on serverside dialogs. Sadly though it doesn't answer the mystery.
Code:
While we're at it, i might as well change the thread title.
I know how to use 0B3C and 0BC9, the only problem with 0B3C is that it doesn't work on serverside dialogs. Which is why i made my own style 5 dialog to check how it works. And also 0BC9 doesn't work on clientside dialogs so i can't test it on the dialog i made.
I made some changes to my dialog...
Nothing was wrong with the GetCurrentDialogListboxItemText snippet.
I managed to make my own style 5 dialog with this piece of code:
0AC6: 20@ = LABEL @Text POINTER
0B3B: SAMP SHOW_DIALOG ID 1383 CAPTION "Caption" TEXT 20@ BUTTON_1 "Button 1" BUTTON_2 "Button 2" STYLE 5
:Text
HEX
"Header...
Hi, currently i am working on a mod that sends responses to dialogs. You can pretty much say it's a mod that completes the dialogs for you. I searched for "style 5 dialog" on UGBASE but found nothing, so i decided to ask for help. I am currently having troubles with this dialog.
This is a style...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.