CLEO Help [Help] Dialog text

CLEO related
Status
Not open for further replies.

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
hello, i am trying to extract the entered dialog text idk what i doing wrong, because i don't getting the entered text
Code:
{$CLEO .cs}
0000: NOP
REPEAT
wait 0
until SAMP.Available
0B34: "text" @TEXT 
while true
wait 0
end

:TEXT
0B3B: samp show_dialog id 1 caption "Type" text "Type something" button_1 "Ok" button_2 "Close" style 1
if 0B3C: samp is_dialog_responded id 1 button 1 list_item 0 input_text 0@
then
chatmsg "You typed: %d" 0@
CmdRet
END
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
27
kazkaS said:
hello, i am trying to extract the entered dialog text idk what i doing wrong, because i don't getting the entered text
Code:
{$CLEO .cs}
0000: NOP
REPEAT
wait 0
until SAMP.Available
0B34: "text" @TEXT 
while true
wait 0
end

:TEXT
0B3B: samp show_dialog id 1 caption "Type" text "Type something" button_1 "Ok" button_2 "Close" style 1
if 0B3C: samp is_dialog_responded id 1 button 1 list_item 0 input_text 0@
then
chatmsg "You typed: %d" 0@
CmdRet
END

create loop
 
Status
Not open for further replies.
Top