Jump to content

Menu Crash


Pie015

Recommended Posts

For some reason it crashes when I launch the game for this menu I made.

sad.gif

 

 

{$CLEO .cs}//------------MAIN-----------0000: NOP:1wait 0077E: get_active_interior_to 10@if and Player.Defined($PLAYER_CHAR)Player.Controllable($PLAYER_CHAR)816B:   not fading10@ == 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 01@ = Object.Create(2173, 2537.8015, -1707.6982, 12.4183)Object.Angle(1@) = -270.0Object.CollisionDetection(1@) = TrueObject.ToggleInMovingList(1@) = FalseObject.SetImmunities(1@, 1, 1, 1, 1, 1)2@ = Actor.Create(CivMale, 240, 2538.3364, -1707.1725, 13.4134)Actor.Angle(2@) = 90.0 wait 100004D7: set_actor 2@ locked 1Marker.CreateAboveActor(4@, 2@)0165: set_marker 4@ color_to 0x785BFFFF 018B: set_marker 4@ radar_mode 2 02A9: set_actor 2@ immune_to_nonplayer 102AB: set_actor 2@ immunities BP 1 FP 1 EP 1 CP 1 MP 10446: set_actor 2@ immune_to_headshots 0 0350: set_actor 2@ maintain_position_when_attacked 1 0249: release_model 240:4wait 03@ = Pickup.Create(1274, 2, 2536.4763, -1707.6899, 13.4244) :5wait 0ifPickup.Picked_up(3@)jf @5Actor.StorePos($PLAYER_ACTOR, 5@, 6@, 7@)018C: play_sound 1150 at 5@ 6@ 7@040D: unload_wav 10172: 20@ = 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 20@03BF: set_player $PLAYER_CHAR ignored_by_everyone 1 0512: show_permanent_text_box 'INSTR'08D4: 11@ = create_panel_with_title 'DEPF' position 29.0 145.0 width 220.0 columns 1 interactive 1 background 1 alignment 1  // Imports08DB: set_panel 11@ 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 11@03E6: 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: 12@ = panel 11@ active_row08DA: remove_panel 11@03E6: remove text boxCamera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = True03BF: set_player $PLAYER_CHAR ignored_by_everyone 0if12@ == 0jf @8if010A:   player $PLAYER_CHAR money > 5jf @NOTENOUGHPlayer.Money($PLAYER_CHAR) += -5jump @SAVE1:8wait 0if12@ == 1jf @10if010A:   player $PLAYER_CHAR money > 10jf @NOTENOUGHPlayer.Money($PLAYER_CHAR) += -10jump @SAVE2:10wait 0if12@ == 2jf @11if010A:   player $PLAYER_CHAR money > 100jf @NOTENOUGHPlayer.Money($PLAYER_CHAR) += -100jump @SAVE3:11wait 0if12@ == 3jf @12if010A:   player $PLAYER_CHAR money > 1000jf @NOTENOUGHPlayer.Money($PLAYER_CHAR) += -1000jump @SAVE4:12wait 0if12@ == 4jf @13if010A:   player $PLAYER_CHAR money > 10000jf @NOTENOUGHPlayer.Money($PLAYER_CHAR) += -10000jump @SAVE5:13wait 0if12@ == 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(3@)jf @SAVE1Player.Money($PLAYER_CHAR) += 5Camera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = Truejump @5:SAVE2wait 0ifPickup.Picked_up(3@)jf @SAVE2Player.Money($PLAYER_CHAR) += 10                                                   ;Camera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = Truejump @5:SAVE3wait 0ifPickup.Picked_up(3@)jf @SAVE3Player.Money($PLAYER_CHAR) += 100Camera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = Truejump @5:SAVE4wait 0ifPickup.Picked_up(3@)jf @SAVE4Player.Money($PLAYER_CHAR) += 1000Camera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = Truejump @5:SAVE5wait 0ifPickup.Picked_up(3@)jf @SAVE5Player.Money($PLAYER_CHAR) += 10000Camera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = Truejump @5:SAVE6wait 0ifPickup.Picked_up(3@)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

 

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

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.