CLEO Help SAMP Dialog

CLEO related
Status
Not open for further replies.

Hackz0r

Active member
Joined
Oct 31, 2016
Messages
25
Reaction score
0
Code:
0B3B: samp show_dialog id 0 caption "Dialog" text "First line" button_1 "Select" button_2 "Done" style DIALOG_STYLE_LIST

What is the correct way to add more lines to choose from in the listbox? This is for the basic SAMP dialog and not the SAMPFUNC one thank you. Also will the ID conflict with server sided dialogs?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Pass a formated string, with each line using a delimiter.

ex;
[shcode=cpp]
0ac8: 2@ = 260
format 2@ "First line%cSecond line%cThird line" 0xA 0xA //0xA = \n
0B3B: samp show_dialog id 0 caption "Dialog" text 2@ button_1 "Select" button_2 "Done" style DIALOG_STYLE_LIST
0ac9: 2@
[/shcode]

(not sure) but if you press any of the button, it should send a dialog response event to the server.
That's why you should use the dxut interface, it allows you to create more complex dialogs.
 
Status
Not open for further replies.
Top