CLEO Help Text draw

CLEO related
Status
Not open for further replies.

Santiz

New member
Joined
Mar 21, 2018
Messages
3
Reaction score
0
Hello how to get textdawt text and how to compare it?

Foto: http://i44.tinypic.com/k0q71f.png

@Springfield
@Monday
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
882
Location
Lithuania
[shcode=cpp]
{$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 ID: %d Text %s" -1 1@ 0@
      end
      free 2@
  end
end
0B43:

[/shcode]

~~ Explain ~~~

/txd
or
/txd [word]  like.: /txd Your 
 

Attachments

  • TXD.cs
    17.8 KB · Views: 18

Santiz

New member
Joined
Mar 21, 2018
Messages
3
Reaction score
0
Parazitas said:
[shcode=cpp]
{$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 ID: %d Text %s" -1 1@ 0@
      end
      free 2@
  end
end
0B43:

[/shcode]

~~ Explain ~~~

/txd
or
/txd [word]  like.: /txd Your 

Thanks for helping me but is not that what i think i wanna get just "Racing Is Your life Here" textdraw and then say "/race"
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
882
Location
Lithuania
Santiz said:
Parazitas said:
[shcode=cpp]
{$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 ID: %d Text %s" -1 1@ 0@
      end
      free 2@
  end
end
0B43:

[/shcode]

~~ Explain ~~~

/txd
or
/txd [word]  like.: /txd Your 

Thanks for helping me but is not that what i think i wanna get just "Racing Is Your life Here" textdraw and then say "/race"
:areyoukiddingme:
Just say..., i not understand anything...
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
26
Santiz said:
Parazitas said:
[shcode=cpp]
{$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 ID: %d Text %s" -1 1@ 0@
      end
      free 2@
  end
end
0B43:

[/shcode]

~~ Explain ~~~

/txd
or
/txd [word]  like.: /txd Your 

Thanks for helping me but is not that what i think i wanna get just "Racing Is Your life Here" textdraw and then say "/race"
Parazitas gave you everything you need. Now you just have to edit that code for your own purpose.
 
Status
Not open for further replies.
Top