Kriskers Posted March 24, 2010 Share Posted March 24, 2010 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 More sharing options...
james227uk Posted March 24, 2010 Share Posted March 24, 2010 For a start you script doesn't end. You don't have a jump, end custom thread or anything to stop the MP3 playing. And when making jPlayer, playing radio and an MP3 at the same time made the game crash Link to comment https://gtaforums.com/topic/443803-my-script-crashes-at-start/#findComment-1059839210 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