Daniel_Absolu Posted November 24, 2016 Share Posted November 24, 2016 (edited) I'm try to use some code but it still crash.. and i dont know why $ple = Actor.Create(Cop,#BMYST,455.9351, -4484.5815, 18.7061)Actor.Angle($ple) = 354.2821$pla = Car.Create(#HUNTER, 454.2983, -4518.416, 19.4719)Car.Angle($pla) = 356.5116072A: put_actor $ple into_car $pla driverseat wait 570Car.LockInCurrentPosition($pla) = True0825: set_helicopter $pla instant_rotor_start $ple1 = Actor.Create(Cop,#BMYST,455.9351, -4484.5815, 18.7061)Actor.Angle($ple1) = 354.2821$pla1 = Car.Create(#CARGOBOB, 469.3376, -4382.2642, 19.1783)Car.Angle($pla1) = 354.0428072A: put_actor $ple1 into_car $pla1 driverseat 0825: set_helicopter $pla1 instant_rotor_startwait 5200Car.LockInCurrentPosition($pla1) = True $ple2 = Actor.Create(Cop,#BMYST,455.9351, -4484.5815, 18.7061)Actor.Angle($ple2) = 354.2821$pla2 = Car.Create(#HUNTER, 456.4583, -4492.5874, 19.168)Car.Angle($pla2) = 352.3203072A: put_actor $ple2 into_car $pla2 driverseat wait 550Car.LockInCurrentPosition($pla2) = True0825: set_helicopter $pla2 instant_rotor_start $ple3 = Actor.Create(Cop,#BMYST,455.9351, -4484.5815, 18.7061)Actor.Angle($ple3) = 354.2821$pla3 = Car.Create(#HUNTER, 459.5163, -4468.1968, 19.1227)Car.Angle($pla3) = 355.0485072A: put_actor $ple3 into_car $pla3 driverseat wait 550Car.LockInCurrentPosition($pla3) = True0825: set_helicopter $pla3 instant_rotor_start $ple4 = Actor.Create(Cop,#BMYST,455.9351, -4484.5815, 18.7061)Actor.Angle($ple4) = 354.2821$pla4 = Car.Create(#HUNTER, 462.6281, -4443.8389, 19.1782)Car.Angle($pla4) = 354.2872072A: put_actor $ple4 into_car $pla4 driverseat wait 550Car.LockInCurrentPosition($pla4) = True0825: set_helicopter $pla4 instant_rotor_start $ple5 = Actor.Create(Cop,#BMYST,455.9351, -4484.5815, 18.7061)Actor.Angle($ple5) = 354.2821$pla5 = Car.Create(#CARGOBOB, 466.2776, -4407.6694, 19.2544)Car.Angle($pla5) = 353.4379072A: put_actor $ple5 into_car $pla5 driverseat 0825: set_helicopter $pla5 instant_rotor_startwait 5200Car.LockInCurrentPosition($pla5) = Truewait 6000$p1 = -1465.1298$p2 = 490.3894$p3 = 18.2344wait 1500Car.LockInCurrentPosition($pla2) = False07BB: set_heli $pla2 horizontal_thrust_power 904DF: set_heli $pla2 lean_and_thrust_limiter 1099A: set_car 35@ collision_detection 00743: heli $pla2 fly_to $p1 $p2 $p3 altitude 0.0 4@wait 1500Car.LockInCurrentPosition($pla3) = False ~~~~~~~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~ Problem begin here //////////////////////////////06A7: put_actor $PLAYER_ACTOR into_turret_on_car $pla3 at_car_offset -0.0 2.0 0.5 position 0 shooting_angle 360.0 360.0 with_weapon 3107BB: set_heli $pla3 horizontal_thrust_power 904DF: set_heli $pla3 lean_and_thrust_limiter 1099A: set_car 35@ collision_detection 00743: heli $pla3 fly_to $p1 $p2 $p3 altitude 0.0 4@wait 1500Car.LockInCurrentPosition($pla4) = False07BB: set_heli $pla4 horizontal_thrust_power 904DF: set_heli $pla4 lean_and_thrust_limiter 1099A: set_car 35@ collision_detection 00743: heli $pla4 fly_to $p1 $p2 $p3 altitude 0.0 4@wait 1500Car.LockInCurrentPosition($pla) = False07BB: set_heli $pla horizontal_thrust_power 904DF: set_heli $pla lean_and_thrust_limiter 1099A: set_car 35@ collision_detection 00743: heli $pla fly_to $p1 $p2 $p3 altitude 0.0 4@0A93: end_custom_thread Edited November 24, 2016 by Daniel_Absolu Link to comment https://gtaforums.com/topic/874027-i-dont-know-why-it-crash/ Share on other sites More sharing options...
ZAZ Posted November 24, 2016 Share Posted November 24, 2016 Don't use global vars like $ple in cleo scripts $PLAYER_CHAR, $PLAYER_ACTOR and $ONMISSION is ok for all the others use local vars instead Link to comment https://gtaforums.com/topic/874027-i-dont-know-why-it-crash/#findComment-1069228136 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now