CLEO Help Read a string from a textdraw

CLEO related
Status
Not open for further replies.

fsociety

Active member
Joined
Dec 6, 2016
Messages
72
Reaction score
2
how can i scan a string from a textdraw?
 
Last edited:

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
First of all check if your textdraw is exists wit opcode
Code:
0C5D: samp textdraw 1@ is_exists

Then get string to it, ant then compare it.
Code:
0C5A: samp textdraw 1@ get_string_to 2@

For example:
Code:
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: $NOT_USED = stristr string1 2@ string2 "text" 
then 
// ur code
 
Status
Not open for further replies.
Top