CLEO Help Sending a specific textdraw selection

CLEO related
Status
Not open for further replies.

jeton007

Active member
Joined
May 16, 2015
Messages
29
Reaction score
1
Hi guys,
Uhm i kinda need help creating a cleo and what it does is basically show a log of the current shown textdraws and then basically i would be able to like /selecttextdraw 1, i've went thru' the opcode list abit and i found 0BCA: samp send_click_textdraw 0@ which should be able to send textdraws but about the "debugging : current shown textdraws" i didn't find anything i think, however i would really appreciate it if you could help me with this :)
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
936
Location
Lithuania
PHP:
{$CLEO .cs}
0000:


REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

0B34: "txd" @textdraw

WHILE TRUE
   WAIT 0
END


:textdraw
0B35: 0@
for 1@ = 0 to 2304
  if 0C5D: samp textdraw 1@ is_exists
  then
      alloc 2@ = 1024
      0C5A: samp textdraw 1@ get_string_to 2@
      if 0C29: 3@ = stristr string1 2@ string2 0@
      then 0AF8: "textdraw with id %d contains %s text" -1 1@ 0@
      end
      free 2@
  end
end
0B43:
 
Status
Not open for further replies.
Top