Faisal_Hazary
New member
- Joined
- Feb 22, 2023
- Messages
- 4
- Reaction score
- 0
Not enough actual parameters. Expected 3 params. Shows when I compile my cleo mod. He is the script. Please fix that issue
C:
{$CLEO .cs}
thread "W2C"
:W2C
03A4: name_thread 'W2C'
while true
wait 0
if
0AB0: key_pressed 12 // Numpad 5 to toggle walking
then
03CA: checkpoint $CHECKPOINT available
03E0: get_point_in_radius 100.0 around_char $PLAYER_ACTOR handle_as $CHECKPOINT
03E1: get_marker $CHECKPOINT type_to $temp_var
if
$temp_var != 0 // Check if the checkpoint is red
then
// Calculate the distance to the checkpoint
0169: $CHECKPOINT_X = $CHECKPOINT_X - $PLAYER_X
0169: $CHECKPOINT_Y = $CHECKPOINT_Y - $PLAYER_Y
0169: $CHECKPOINT_Z = $CHECKPOINT_Z - $PLAYER_Z
00AB: $distance = sqrt($CHECKPOINT_X * $CHECKPOINT_X + $CHECKPOINT_Y * $CHECKPOINT_Y + $CHECKPOINT_Z * $CHECKPOINT_Z)
if
$distance > 5.0
then
01B2: set_player $PLAYER_CHAR ignore_wanted_level 1
01B6: set_player $PLAYER_CHAR ignore_radar 1
03CD: set_marker $CHECKPOINT show_on_radar 1
03CC: enable_marker $CHECKPOINT
03CB: set_marker $CHECKPOINT type_to 1 // Green marker
0395: clear_area 1 at $CHECKPOINT_X $CHECKPOINT_Y $CHECKPOINT_Z radius 5.0
0368: create_racing_checkpoint $PLAYER_X $PLAYER_Y $PLAYER_Z $CHECKPOINT_X $CHECKPOINT_Y $CHECKPOINT_Z $CHECKPOINT_X $CHECKPOINT_Y $CHECKPOINT_Z 3
0199: $CHECKPOINT_Z = float $CHECKPOINT_Z
018B: set_camera_on_player 0 0 0 0
03CE: set_blip $CHECKPOINT entry_exit "CONE" // Optional: Change the blip icon
0394: play_music 2
end
end
end
end