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
:areyoukiddingme: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.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"