Jump to content

Problem with my own main.scm


Denknubbes

Recommended Posts

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
Share on other sites

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
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.