Idk why but i cant compile this script:
when i compile it says (could not find get_cp) i already added sf opcodes but it still not working can anyone compile this for me or help me to fix this error?
Code:
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
WHILE TRUE
WAIT 0
IF
00DF: actor $PLAYER_ACTOR driving
THEN
03C0: 0@ = actor $PLAYER_ACTOR car
IF
0AB1: @is_cp_active 0 // are we in a checkpoint?
THEN
0AB1: @get_cp 0 1@ 2@ 3@ // get checkpoint pos
0407: store_coords_to 4@ 5@ 6@ from_car 0@ with_offset 0.0 0.0 0.0
050A: 7@ = distance_between_XYZ 1@ 2@ 3@ and_XYZ 4@ 5@ 6@
IF
7@ < 4.0 // Radius of Checkpoint, if its smaller then 4 then Stop car
THEN
33@ = 0 // reset timer, increases +1 each millisecond
repeat
wait 0
IF
80DF: actor $PLAYER_ACTOR driving
THEN
BREAK
END
04BA: set_car 0@ speed_to 0.0 // stop car
until 33@ > 15000
REPEAT
wait 0
IF
80DF: actor $PLAYER_ACTOR driving
THEN
BREAK
END
0407: store_coords_to 4@ 5@ 6@ from_car 0@ with_offset 0.0 0.0 0.0
050A: 7@ = distance_between_XYZ 1@ 2@ 3@ and_XYZ 4@ 5@ 6@
UNTIL 7@ > 4.0 // If is out of the checkpoint...
wait 3000
END
END
END
END
when i compile it says (could not find get_cp) i already added sf opcodes but it still not working can anyone compile this for me or help me to fix this error?