Hey there!! I need some help, because I'm stuck a little bit. The thing I need is to highlight/delete the selected "item" from dialog, I have ideas.. but it doesn't properly work...
Here I'm formating the string for a dialog_list_item:
Then I get the dialog itself:
Highlighted selected "item" from the list:
*This dialogs was made manually
Here I'm formating the string for a dialog_list_item:
Code:
:dialog_create
alloc 31@ 128
SAMP.GetChatString(99,31@,0,29@,0)
if and
29@ == -256
0C18: $NOT_USED = strstr string1 31@ string2 "text"
then
alloc 30@ 128
format 30@ "%s %c" 31@ 0xA
0C15: strcat destination 0@ source 30@
free 30@
end
free 31@
ret 1 0@
Highlighted selected "item" from the list:
*This dialogs was made manually