Jump to content

My script crashes at start!


Recommended Posts

Hello!

 

Im making a mod, that cuts radio to static when under bridges!

 

Everything is almost going fine, I have the soundtrack and I know how to code (very little)

But my script crashes when game starts, WHY?

 

Here is the code:

 

 

//-------------MAIN---------------thread 'STATIC' 0A95: enable_thread_saving 0AB3: var 15 = 0 0AAC: $HMP3 = load_mp3 "CLEO\PLAYLIST\STATIC.MP3" :STATIC_50wait 0 if   Player.Defined($PLAYER_CHAR)else_jump @STATIC_50 if  $ONMISSION == 0 else_jump @STATIC_50 0AB4: 1@ = var 15 if  1@ == 0 00FF:   actor $PLAYER_ACTOR sphere 0 in_sphere 75.39119 -1273.237 14.4234 radius 5.0 5.0 5.0 on_foot 0AAD: set_mp3 $HMP3 perform_action 1 

 

 

Why does the script crash?

And how to end the soundtrack, when the player is not under the bridge anymore?

Link to comment
https://gtaforums.com/topic/443803-my-script-crashes-at-start/
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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