Michael-Knight1 Posted October 7, 2012 Share Posted October 7, 2012 I Need to know why the game crash after jump to label @DEMO2_789 :DEMO2thread 'DEMO2' gosub @DEMO2_38 if wasted_or_busted else_jump @DEMO2_89 gosub @DEMO2_1162 :DEMO2_380180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here $ONMISSION = 1 increment_mission_attempts jump @DEMO2_98 01F0: set_max_wanted_level_to 6 mission_cleanup 00BA: show_text_styled GXT "M_FAIL" time 4000 style 1 $ONMISSION = 0 end_thread :DEMO2_89gosub @DEMO2_1368 end_thread :DEMO2_98Model.Load(#LINERUN)Model.Load(#MALE01)Model.Load(#ARTICT2)023C: load_special_actor 'GARTHE' as 1 // models 290-299 038B: load_requested_models :DEMO2_127wait 0 if not Model.Available(#LINERUN) not Model.Available(#ARTICT2) not Model.Available(#MALE01)823D: not special_actor 1 loaded else_jump @DEMO2_171 wait 0 jump @DEMO2_127 :DEMO2_171wait 0 fade 0 1000 Player.CanMove($PLAYER_CHAR) = Falsewait 1000 fade 1 10 Car.PutAt($KITT, 144.1084, 1646.89, 16.8343)Car.Angle($KITT) = 89.6989072A: put_actor $PLAYER_ACTOR into_car $KITT driverseat Player.CanMove($PLAYER_CHAR) = False$DEMO_2_VEH1 = Car.Create(#LINERUN, 54.8884, 1647.957, 18.5259)Car.Angle($DEMO_2_VEH1) = 270.5743$DEMO_2_VEH2 = Car.Create(#ARTICT2, 43.0913, 1648.299, 18.5301)Car.Angle($DEMO_2_VEH2) = 270.57430893: put_trailer $DEMO_2_VEH2 on_cab $DEMO_2_VEH1 0918: unknown_car $DEMO_2_VEH1 driver_flag 1 Car.SetImmunities($DEMO_2_VEH1, 1, 1, 1, 1, 1)Camera.SetPosition(135.867, 1647.847, 17.227, 0.0, 0.0, 0.0)Camera.PointAt(140.866, 1647.73, 17.327, 2)0967: actor $PLAYER_ACTOR move_mouth 5000 ms 0AD1: show_formatted_text_highpriority "~G~MICHAEL : ~W~KITT , YOU SEE WHAT I SEE ?" 5000 2769 wait 5000 0968: actor $PLAYER_ACTOR stop_mouth Camera.SetPosition(144.445, 1643.074, 19.227, 0.0, 0.0, 0.0)Camera.PointAt(139.483, 1643.692, 18.827, 2)0AD1: show_formatted_text_highpriority "~B~KITT : ~W~YES MICHAEL , IT'S GOLIATH AND GARTHE !" 5000 2769 wait 5000 0967: actor $PLAYER_ACTOR move_mouth 5000 ms 0AD1: show_formatted_text_highpriority "~B~KITT : ~W~OK , LET'S GO PAL ." 5000 2769 Camera.SetPosition(142.087, 1647.275, 17.727, 0.0, 0.0, 0.0)Camera.PointAt(147.082, 1647.517, 16.527, 2)wait 5000 0AD1: show_formatted_text_highpriority "~R~DESTROY ~W~GOLIATH TRAILER" 5000 2769 0968: actor $PLAYER_ACTOR stop_mouth $DEMO_2_MARKER = Marker.CreateAboveCar($DEMO_2_VEH2)0129: $DEMO_2_SPECIAL = create_actor_pedtype 4 model #SPECIAL01 in_car $DEMO_2_VEH1 driverseat Car.SetDriverBehaviour($DEMO_2_VEH1, KillThePlayer)Car.SetMaxSpeed($DEMO_2_VEH1, 35.0)Player.CanMove($PLAYER_CHAR) = TrueCamera.Restore_WithJumpCutjump @DEMO2_789 :DEMO2_789if Car.Wrecked($DEMO_2_VEH2)else_jump @DEMO2_789 Marker.Disable($DEMO_2_MARKER)$DEMO_2_MARKER2 = Marker.CreateAboveCar($DEMO_2_VEH1)Car.SetImmunities($DEMO_2_VEH1, 0, 0, 0, 0, 0)Car.SetDriverBehaviour($DEMO_2_VEH1, KillThePlayer)Car.SetMaxSpeed($DEMO_2_VEH1, 35.0)Player.CanMove($PLAYER_CHAR) = True0AD1: show_formatted_text_highpriority "~R~DESTROY ~W~GOLIATH" 5000 2769 jump @DEMO2_896 :DEMO2_896if Car.Wrecked($DEMO_2_VEH1)else_jump @DEMO2_896 Car.Destroy($DEMO_2_VEH1)Car.Destroy($DEMO_2_VEH2)$DEMO_2_VEH3 = Car.Create(#LINERUN, 113.3158, 1672.74, 18.8304)Car.Angle($DEMO_2_VEH3) = 0.543Car.PutAt($KITT, 100.9846, 1670.971, 17.1896)Car.Angle($KITT) = 357.9083072A: put_actor $PLAYER_ACTOR into_car $KITT driverseat 0129: $DEMO_2_SPECIAL2 = create_actor_pedtype 4 model #SPECIAL01 in_car $DEMO_2_VEH3 driverseat wait 2000 0633: AS_actor $DEMO_2_VEH3 exit_car 05E2: AS_actor $DEMO_2_SPECIAL2 kill_actor $PLAYER_ACTOR 07FE: set_actor $PLAYER_ACTOR fighting_style_to 5 6 Camera.SetPosition(106.454, 1674.522, 19.589, 0.0, 0.0, 0.0)Camera.PointAt(111.436, 1674.103, 18.889, 2)wait 3000 0AD1: show_formatted_text_highpriority "~R~KILL ~W~GARTHE" 4000 2769 $DEMO_2_MARKER2 = Marker.CreateAboveCar($DEMO_2_VEH3)Camera.Restore_WithJumpCutjump @DEMO2_1134 :DEMO2_1134if Actor.Dead($DEMO_2_VEH3)else_jump @DEMO2_1134 Marker.Disable($DEMO_2_MARKER2)jump @DEMO2_1252 :DEMO2_1162create_thread @KARRDEMO create_thread @GOLIATHDEMO create_thread @JUGGERNAUTDEMO fade 0 1000 Actor.PutAt($PLAYER_ACTOR, 1143.792, -2036.886, 70.5234)Actor.Angle($PLAYER_ACTOR) = 269.5674wait 1000 00BA: show_text_styled GXT "M_FAIL" time 4000 style 1 gosub @DEMO2_1368 end_thread :DEMO2_1252create_thread @KARRDEMO create_thread @GOLIATHDEMO create_thread @JUGGERNAUTDEMO fade 0 1000 0394: play_music 1 Actor.PutAt($PLAYER_ACTOR, 1143.792, -2036.886, 70.5234)Actor.Angle($PLAYER_ACTOR) = 269.5674wait 1000 01E3: show_text_1number_styled GXT 'M_PASSS' number 7000 time 5000 style 1 // MISSION PASSED!~n~~w~$~1~~n~~w~RESPECT +Player.Money($PLAYER_CHAR) += 20000Player.ClearWantedLevel($PLAYER_CHAR)0998: add_respect 300 gosub @DEMO2_1368 end_thread :DEMO2_1368Car.Destroy($DEMO_2_VEH1)Car.Destroy($DEMO_2_VEH2)Car.Destroy($KITT)Marker.Disable($DEMO_2_MARKER)01EB: set_traffic_density_multiplier_to 1.0 03DE: set_pedestrians_density_multiplier_to 1.0 Player.ClearWantedLevel($PLAYER_CHAR)$ONMISSION = 0 mission_cleanup end_thread Link to comment Share on other sites More sharing options...
Node Posted October 7, 2012 Share Posted October 7, 2012 You forgot a wait opcode at :DEMO2_789, recheck all your if checks and add wait opcodes into them. Link to comment Share on other sites More sharing options...
Michael-Knight1 Posted October 7, 2012 Author Share Posted October 7, 2012 (edited) You forgot a wait opcode at :DEMO2_789, recheck all your if checks and add wait opcodes into them. Yeah , i forgot the wait before the while loop Thanks Edited October 7, 2012 by Michael-Knight1 Link to comment Share on other sites More sharing options...
Recommended Posts