Convert cleo in c++

Joined
Nov 7, 2017
Messages
16
Likes
0
Points
6
#1
Could anyone help me convert this code to C++, thanks.
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: [email protected]
for [email protected] = 0 to 2304
  if 0C5D: samp textdraw [email protected] is_exists
  then
      alloc [email protected] = 1024
      0C5A: samp textdraw [email protected] get_string_to [email protected]
      if 0C29: [email protected] = stristr string1 [email protected] string2 [email protected]
      then
        0AF8: "textdraw with id %d contains %s text" -1 [email protected] [email protected]
      end
      free [email protected]
  end
end
0BB3: samp [email protected] = get_textdraw_pool_ptr
0AF8: "textdraw pool ptr: %d" -1 [email protected]
0B43:
 
Top