Pie015 Posted November 29, 2011 Share Posted November 29, 2011 For some reason it crashes when I launch the game for this menu I made. {$CLEO .cs}//------------MAIN-----------0000: NOP:1wait 0077E: get_active_interior_to [email protected] and Player.Defined($PLAYER_CHAR)Player.Controllable($PLAYER_CHAR)816B: not [email protected] == 0$ONMISSION == 0jf @1Model.Load(240)03CF: load_wav 1150 as 1 038B: load_requested_models:2wait 0if and03D0: wav 1 loaded Model.Available(240)jf @2:3wait [email protected] = Object.Create(2173, 2537.8015, -1707.6982, 12.4183)Object.Angle([email protected]) = -270.0Object.CollisionDetection([email protected]) = TrueObject.ToggleInMovingList([email protected]) = FalseObject.SetImmunities([email protected], 1, 1, 1, 1, 1)[email protected] = Actor.Create(CivMale, 240, 2538.3364, -1707.1725, 13.4134)Actor.Angle([email protected]) = 90.0 wait 100004D7: set_actor [email protected] locked 1Marker.CreateAboveActor([email protected], [email protected])0165: set_marker [email protected] color_to 0x785BFFFF 018B: set_marker [email protected] radar_mode 2 02A9: set_actor [email protected] immune_to_nonplayer 102AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 10446: set_actor [email protected] immune_to_headshots 0 0350: set_actor [email protected] maintain_position_when_attacked 1 0249: release_model 240:4wait [email protected] = Pickup.Create(1274, 2, 2536.4763, -1707.6899, 13.4244) :5wait 0ifPickup.Picked_up([email protected])jf @5Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])018C: play_sound 1150 at [email protected] [email protected] [email protected]: unload_wav 10172: [email protected] = actor $PLAYER_ACTOR Z_angle Actor.PutAt($PLAYER_ACTOR, 2536.5273, -1706.0522, 13.4121)Player.CanMove($PLAYER_CHAR) = FalseCamera.Restore_WithJumpCut0173: set_actor $PLAYER_ACTOR Z_angle_to [email protected]: set_player $PLAYER_CHAR ignored_by_everyone 1 0512: show_permanent_text_box 'INSTR'08D4: [email protected] = create_panel_with_title 'DEPF' position 29.0 145.0 width 220.0 columns 1 interactive 1 background 1 alignment 1 // Imports08DB: set_panel [email protected] column 0 header 'DEPF' data 'MNE1' 'MNE2' 'MNE3' 'MNE4' 'MNE5' 'MNE6' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY':6wait 0if00E1: player 0 pressed_key 15jf @708DA: remove_panel [email protected]: remove text boxCamera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = True03BF: set_player $PLAYER_CHAR ignored_by_everyone 0jump @5:7wait 0if00E1: player 0 pressed_key 16jf @608D7: [email protected] = panel [email protected] active_row08DA: remove_panel [email protected]: remove text boxCamera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = True03BF: set_player $PLAYER_CHAR ignored_by_everyone [email protected] == 0jf @8if010A: player $PLAYER_CHAR money > 5jf @NOTENOUGHPlayer.Money($PLAYER_CHAR) += -5jump @SAVE1:8wait [email protected] == 1jf @10if010A: player $PLAYER_CHAR money > 10jf @NOTENOUGHPlayer.Money($PLAYER_CHAR) += -10jump @SAVE2:10wait [email protected] == 2jf @11if010A: player $PLAYER_CHAR money > 100jf @NOTENOUGHPlayer.Money($PLAYER_CHAR) += -100jump @SAVE3:11wait [email protected] == 3jf @12if010A: player $PLAYER_CHAR money > 1000jf @NOTENOUGHPlayer.Money($PLAYER_CHAR) += -1000jump @SAVE4:12wait [email protected] == 4jf @13if010A: player $PLAYER_CHAR money > 10000jf @NOTENOUGHPlayer.Money($PLAYER_CHAR) += -10000jump @SAVE5:13wait [email protected] == 5jf @6if010A: player $PLAYER_CHAR money > 100000jf @NOTENOUGHPlayer.Money($PLAYER_CHAR) += -100000jump @SAVE6:NOTENOUGHwait 000BA: show_text_styled GXT 'NECA' time 3000 style 6 // Beefy Baronjump @6:SAVE1wait 0ifPickup.Picked_up([email protected])jf @SAVE1Player.Money($PLAYER_CHAR) += 5Camera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = Truejump @5:SAVE2wait 0ifPickup.Picked_up([email protected])jf @SAVE2Player.Money($PLAYER_CHAR) += 10 ;Camera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = Truejump @5:SAVE3wait 0ifPickup.Picked_up([email protected])jf @SAVE3Player.Money($PLAYER_CHAR) += 100Camera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = Truejump @5:SAVE4wait 0ifPickup.Picked_up([email protected])jf @SAVE4Player.Money($PLAYER_CHAR) += 1000Camera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = Truejump @5:SAVE5wait 0ifPickup.Picked_up([email protected])jf @SAVE5Player.Money($PLAYER_CHAR) += 10000Camera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = Truejump @5:SAVE6wait 0ifPickup.Picked_up([email protected])jf @SAVE6Player.Money($PLAYER_CHAR) += 100000Camera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = Truejump @5 The FXT:INSTR Press UP and DOWN to choose scroll~n~~k~~PED_SPRINT~ to choose an Item~n~~k~~VEHICLE_ENTER_EXIT~ to exitDEPF DepositMNE1 $5MNE2 $10MNE3 $100MNE4 $1000MNE5 $10000MNE5 $100000NECA ~r~not enough money to deposit!~r~ Link to comment Share on other sites More sharing options...
Silent Posted November 29, 2011 Share Posted November 29, 2011 03CF: load_wav 1150 as 1 Don't load the sound using WAV opcodes, just play it using 018C: play_sound 1150 at 0.0 0.0 0.0 Link to comment 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