Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Mission Crashed


Michael-Knight1
 Share

Recommended Posts

Michael-Knight1

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

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

Michael-Knight1

 

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 lol.gif

Thanks icon14.gif

Edited by Michael-Knight1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.