Hey, so for the past few hours I've been having some trouble getting this script to work, could use some help with it.
Here's the code:
The dialog ID is 250, here's a picture of the dialog:
The problem I'm having is that it doesn't do anything when the dialog appears.
Thanks in advance for any help you could give me!
Here's the code:
Code:
{$CLEO .cs}
0000:
while not SAMP.Available()
wait 50
end
while true
wait 0
if
0B4C: samp is_dialog_active 250
then
alloc 0@ 4096
0BD7: samp get_dialog_text 0@
if
0AD4: $NOT_NEEDED = scan_string 0@ format "Enter %d" 5@
then
alloc 2@ 8
format 2@ "%d" 5@
0B4B: samp set_current_dialog_editbox_text 2@
wait 2000
free 2@
free 5@
0B47: samp close_current_dialog_with_button 0
end
end
end
The dialog ID is 250, here's a picture of the dialog:

The problem I'm having is that it doesn't do anything when the dialog appears.
Thanks in advance for any help you could give me!