fsociety Active member Joined Dec 6, 2016 Messages 72 Reaction score 2 Jun 21, 2020 #1 how can i scan a string from a textdraw? Last edited: Jun 21, 2020
Krc Active member Joined Mar 30, 2018 Messages 193 Reaction score 25 Location Lithuania Jun 21, 2020 #2 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 Upvote 0 Downvote
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