:
Destination Time
:
Present Time
:
Last Time Departed
ahmed walid

Why this code is not working

Recommended Posts

why this code is not working 

:CAR13
thread 'CAR13'

:CAR13_10
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @CAR13_10 
if 
 00DC:   player $PLAYER_CHAR driving #PHEONIX
then 
 03C1: $DMC13 = player $PLAYER_CHAR car
 jump @CAR13_10
end  
if 
   not Car.Wrecked($DMC13)
else_jump @CAR13_10 
if and
 00E1:   key_pressed 0 13 
 00E1:   key_pressed 0 18 
else_jump @CAR13_10 
wait 100 
0054: store_player $PLAYER_CHAR position_to 0@ 1@ 2@ 
0167: 4@ = create_marker_at 0@ 1@ 2@ color 1 flag 3 
Marker.SetColor(4@, 14)
0168: set_blip 4@ size 2 
Car.DriveTo($DMC13, 0@, 1@, 2@)
00AE: set_vehicle $DMC13 traffic_behavior_to 2 
6@ = 25.0 // floating-point values 

:CAR13_169
wait 0 
Car.SetMaxSpeed($DMC13, 6@)
wait 0 
if and
   not 6@ > 180.0 // floating-point values 
00E1:   key_pressed 0 15 
else_jump @CAR13_229 
6@ += 0.5 // floating-point values 
jump @CAR13_169 

:CAR13_229
wait 0 
if and
  6@ >= 10.0 // floating-point values (never used in VC or GTA 3) 
00E1:   key_pressed 0 15 
else_jump @CAR13_277 
6@ -= 0.5 // floating-point values 
jump @CAR13_169 

:CAR13_277
wait 0 
if or
00E1:   key_pressed 0 15 
00F5:   player $PLAYER_CHAR 0 0@ 1@ 2@ radius 10.0 10.0 1000.0 
else_jump @CAR13_169 
Marker.Disable(4@)
0168: set_blip 4@ size 0 
Car.SetMaxSpeed($DMC13, 0.0)
0369: put_player $PLAYER_CHAR in_car $DMC13 
jump @CAR13_10 
Car.SetMaxSpeed($DMC13, 0.0)
Marker.Disable(4@)
0168: set_blip 4@ size 0 
jump @CAR13_10
end_thread 

 

This Code When I Execute it with pressing Horn+Camera in PHEONIX Car doesn't do anything.

Can anyone help me!

Share this post


Link to post
Share on other sites

you are telling it to drive to its self. the way it reads the car is already there.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...