CLEO Help Not enough actual parameters. Expected 3 params. (On Compile)

CLEO related

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
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
882
Location
Lithuania
You just need add some instructions because now codes don't know what you mean by writing:
$CHECKPOINT_X etc...
You need add simple instructions before while true loop.
PHP:
Const
0@ = $CHECKPOINT_X
1@ = $CHECKPOINT_Y
2@ = $CHECKPOINT_Z
end


Etc...
All named variables must have they digital variable number
 

Faisal_Hazary

New member
Joined
Feb 22, 2023
Messages
4
Reaction score
0
You just need add some instructions because now codes don't know what you mean by writing:
$CHECKPOINT_X etc...
You need add simple instructions before while true loop.
PHP:
Const
0@ = $CHECKPOINT_X
1@ = $CHECKPOINT_Y
2@ = $CHECKPOINT_Z
end


Etc...
All named variables must have they digital variable number
Can you make a cleo mod which will run to red checkpoint near 50m? Its a mining job. in Axiania Server script. It just appear a checkpoint. when go there it start mining. and spawn another checkpoint after end that mining. I will happy if you give me that mod.
 
Top