Hello,
I got an problem with my code and its my first time with codes of cleo so can anyone help me because im getting an exe crash when im near the position and in a car.
I would like to have it like that when im near the Position it should write a command port to the 1st,timer,2nd,timer,3rd,timer,1st
Is it also possible that when I get at the 1st position at the end that the Cleo puts me in the nearest free nevada?
Can you tell me whats wrong there and also edit it like i want because I dont have much knowledge in that area.
I got an problem with my code and its my first time with codes of cleo so can anyone help me because im getting an exe crash when im near the position and in a car.
I would like to have it like that when im near the Position it should write a command port to the 1st,timer,2nd,timer,3rd,timer,1st
Is it also possible that when I get at the 1st position at the end that the Cleo puts me in the nearest free nevada?
Can you tell me whats wrong there and also edit it like i want because I dont have much knowledge in that area.
Code:
{$CLEO .cs}
thread 'Flight'
wait 5000
0AC8: 15@ = allocate_memory_size 260
0AD3: 15@ = format "/startfly
:Flight_01
wait 0
if and
Player.Defined($PLAYER_CHAR)
Actor.Driving($PLAYER_ACTOR)
wait 3000
else_jump @Flight_01
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 2045.4906 -2593.0469 radius 1000.0 1000.0
else_jump @Flight_01
0ACD: show_text_highpriority "~B~YOU'RE THERE!" time 6500
0AB1: call_scm_func @Flight_31 1 15@
wait 2000
Actor.PutAt($PLAYER_ACTOR, 2045.4906,-2593.0469,14.8274)
0ACD: show_text_highpriority "~B~YOU'RE THERE!" time 6500
wait 6500
0ACD: show_text_highpriority "~B~Teleport" time 1000
wait 1000
Actor.PutAt($PLAYER_ACTOR, -1656.8525,-161.9482,15.4800)
jump @Wittzi_02
:Flight_02
wait 0
if
00DF: actor $PLAYER_ACTOR driving
else_jump @Wittzi_02
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point -1656.8525 -161.9482 radius 10.0 10.0
else_jump @Wittzi_02
0ACD: show_text_highpriority "~B~YOU'RE THERE!" time 6500
wait 6500
0ACD: show_text_highpriority "~B~Teleport" time 1000
wait 1000
Actor.PutAt($PLAYER_ACTOR, 1477.8356,1699.1669,12.1540)
jump @Wittzi_03
:Flight_03
wait 0
if
00DF: actor $PLAYER_ACTOR driving
else_jump @Wittzi_03
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 1477.8356 1699.1669 radius 10.0 10.0
else_jump @Wittzi_03
0ACD: show_text_highpriority "~B~YOU'RE THERE!" time 6500
wait 6500
0ACD: show_text_highpriority "~B~Teleport" time 1000
wait 1000
Actor.PutAt($PLAYER_ACTOR, 2045.4906,-2593.0469,14.8274)
:Flight_31
if
0AA2: 1@ = load_library "SAMP.DLL" // IF and SET
jf @Wittzi_32
1@ += 507344
0AA5: call 1@ num_params 1 pop 0 0@
:Flight_32
0AB2: ret 0