Could anyone help me convert this code to C++, thanks.
samp version: 0.3.7 r1
samp version: 0.3.7 r1
Code:
{$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
0BB3: samp 4@ = get_textdraw_pool_ptr
0AF8: "textdraw pool ptr: %d" -1 4@
0B43: