Denknubbes Posted April 29, 2007 Share Posted April 29, 2007 I've created my own main.scm for GTA 3 but when I want to start a new game with it, the game crashes. This is my code. What is wrong? DEFINE VERSION 5.0 0002: jump ££Label004364 DEFINE MEMORY 17245 :Label004364 0002: jump ££Label0054E0 DEFINE OBJECTS 0 :Label0054E0 0002: jump ££Label005634 DEFINE MISSIONS 0 ;-------------MAIN--------------- :Label005634 03A4: name_thread "MAIN" 042C: set_total_missions_to 0 030D: set_total_mission_points_to 187 01F0: set_max_wanted_level_to 6 0111: set_wasted_busted_check_to 0 00C0: set_current_time 8 0 016A: fade 0 10 ms 01B6: set_weather 0 03CB: set_camera 811.875 -939.9375 35.75 0053: $PLAYER_CHAR = create_player #NULL at 811.875 -939.9375 35.75 :MAIN 0373: set_camera_directly_behind_player 0173: set_actor $PLAYER_ACTOR z_angle_to 262.0 0001: wait 100 016C: restart_if_wasted at 811.875 -939.9375 35.75 016D: restart_if_busted at 811.875 -939.9375 35.75 016A: fade 1 1000 ms 004E: end_thread Link to comment https://gtaforums.com/topic/276591-problem-with-my-own-mainscm/ Share on other sites More sharing options...
SteaVor Posted April 29, 2007 Share Posted April 29, 2007 There's no loop at the end to keep the code running. And the reason for crashing: 0173: set_actor $PLAYER_ACTOR z_angle_to 262.0 Who the f*ck is PLAYER_ACTOR? A tree? Your mom? You didn't define it, so the game is rather clueless here. Link to comment https://gtaforums.com/topic/276591-problem-with-my-own-mainscm/#findComment-4211983 Share on other sites More sharing options...
Denknubbes Posted April 29, 2007 Author Share Posted April 29, 2007 Thank you very much! Link to comment https://gtaforums.com/topic/276591-problem-with-my-own-mainscm/#findComment-4212003 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