Im trying to compile this script, and my sanny builder gives me this error:
Code:
Opcode 0AF4 is not found in the standard opcodes and current script extensions.
Add directive {$USE <extension_name>} at the top of the script.
List of available extensions: CLEO+, default, CLEO, newOpcodes, bitwise, file, ini.
Code:
{$CLEO .cs}
0000:
CONST
R = 1@
G = 2@
B = 3@
END
WHILE TRUE
WAIT 0
R = 255
G = 0
B = 0
FOR B = 0 TO 255
WAIT 0
GOSUB @DRAW
END
B = 255
FOR R = 255 DOWNTO 0
WAIT 0
GOSUB @DRAW
END
R = 0
FOR G = 0 TO 255
WAIT 0
GOSUB @DRAW
END
G = 255
FOR B = 255 DOWNTO 0
WAIT 0
GOSUB @DRAW
END
B = 0
FOR R = 0 TO 255
WAIT 0
GOSUB @DRAW
END
R = 255
FOR G = 255 DOWNTO 0
WAIT 0
GOSUB @DRAW
END
G = 0
END
:DRAW
0AC8: 4@ = allocate_memory_size 260
0AF4: 4@ = read_string_from_ini_file "cleo\NameCFlow.ini" section "Settings" key "Name"
03F0: enable_text_draw 3
0342: set_text_draw_centered 1
03E0: draw_text_behind_textures 0
033F: set_text_draw_letter_size width 0.30 height 1.36
081C: draw_text_outline 1 RGBA 0 0 0 255
0340: set_text_draw_RGBA R G B 255
0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED000' 0@
0AA5: call 0x718600 2 pop 2 0@ 4@
0AF2: 5@ = get_float_from_ini_file "cleo\NameCFlow.ini" section "Settings" key "X-Pos"
0AF2: 6@ = get_float_from_ini_file "cleo\NameCFlow.ini" section "Settings" key "Y-Pos"
033E: set_draw_text_position 5@ 6@ GXT 'CRED000' // Push
0AC9: free_allocated_memory 4@
RETURN