Jump to content

some help (menu)


Recommended Posts

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

 

{$VERSION 3.1.0027}

{$CLEO .cs}

 

//-------------MAIN---------------

0000: NOP

014B: $PARKED_BULLET = init_parked_car_generator #SUPERGT color -1 -1 1 alarm 100 door_lock 1 0 10000 at -1913.471 2053.901 898.8716 angle 121.703

014C: set_parked_car_generator $PARKED_BULLET cars_to_generate_to 101

014B: $PARKED_BULLET1 = init_parked_car_generator #JESTER color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1913.545 2035.753 898.8706 angle 51.5333

014C: set_parked_car_generator $PARKED_BULLET1 cars_to_generate_to 101

014B: $PARKED_BULLET2 = init_parked_car_generator #CHEETAH color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1904.098 2011.202 898.8707 angle 59.9091

014C: set_parked_car_generator $PARKED_BULLET2 cars_to_generate_to 101

014B: $PARKED_BULLET3 = init_parked_car_generator #INFERNUS color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1902.183 2024.858 898.8758 angle 57.2268

014C: set_parked_car_generator $PARKED_BULLET3 cars_to_generate_to 101

014B: $PARKED_BULLET4 = init_parked_car_generator #SULTAN color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1909.594 2055.72 904.4489 angle 69.8786

014C: set_parked_car_generator $PARKED_BULLET4 cars_to_generate_to 101

014B: $PARKED_BULLET5 = init_parked_car_generator #BANSHEE color -1 -1 1 alarm 0 door_lock 0 0 10000 at -1907.139 2043.865 904.9306 angle 69.8786

014C: set_parked_car_generator $PARKED_BULLET5 cars_to_generate_to 101

014B: $PARKED_BULLET6 = init_parked_car_generator #BULLET color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1905.225 2022.77 904.5448 angle 63.5391

014C: set_parked_car_generator $PARKED_BULLET6 cars_to_generate_to 101

014B: $PARKED_BULLET7 = init_parked_car_generator #COMET color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1900.494 2009.559 904.5422 angle 63.5391

014C: set_parked_car_generator $PARKED_BULLET7 cars_to_generate_to 101

03BC: 1@ = create_sphere_at -1916.2114 2010.4999 899.3575 radius 1.5

 

:yaser_1

Model.Load(#WMYBMX)

Model.Load(#OMYST)

Model.Load(#MAFBOSS)

Model.Load(#SUPERGT)

Model.Load(#JESTER)

Model.Load(#CHEETAH)

Model.Load(#INFERNUS)

Model.Load(#SULTAN)

Model.Load(#BANSHEE)

Model.Load(#BULLET)

Model.Load(#COMET)

038B: load_requested_models

 

:yaser_2

if or

not Model.Available(506)

not Model.Available(559)

not Model.Available(415)

not Model.Available(411)

not Model.Available(560)

not Model.Available(429)

not Model.Available(541)

not Model.Available(480)

not Model.Available(13)

else_jump @yaser_3

wait 0

jump @yaser_2

 

:yaser_3

if

00ED: actor $PLAYER_ACTOR 0 near_point -1916.2114 2010.4999 radius 0.5 0.5 on_foot

jf @yaser_3

wait 100

jump @yaser_4

 

:yaser_4

01B4: set_player $PLAYER_CHAR can_move 0

wait 100

08D4: $MENU = create_panel_with_title 'DUMMY' position 25.0 145.0 width 230.0 columns 1 interactive 1 background 1 alignment 1

08DB: set_panel $1153 column 0 header 'DUMMY' data 'IE16' 'IE10' 'IE11' 'IE12' 'IE13' 'IE14' 'IE15' 'IE15' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'

 

:yaser_5

wait 0

if

00E1: player 0 pressed_key 8

jf @yaser_6

08DA: remove_panel $MENU

03E6: remove_text_box

01B4: set_player $PLAYER_CHAR can_move 1

jump @yaser_3

 

:yaser_6

00E1: player 0 pressed_key 9

jf @yaser_5

08D7: $CHOICE = panel $MENU active_row

08DA: remove_panel $MENU

03E6: remove_text_box

if

$CHOICE == 0

jf @yaser_7

00BA: show_text_styled GXT 'BEEFY' time 4000 style 2

0109: player $PLAYER_CHAR money -= 400000

00A5: 2@ = create_car #supergt at -1932.1462 2007.8865 899.1898

 

 

:yaser_7

if

$CHOICE == 1

jf @yaser_8

Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)

00A5: 9@ = create_car #comet at -1932.1462 2007.8865 899.1898

 

:yaser_8

if

$CHOICE == 2

jf @yaser_9

Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)

00A5: 3@ = create_car #JESTER at -1932.1462 2007.8865 899.1898

 

:yaser_9

if

$CHOICE == 3

jf @yaser_10

Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)

00A5: 4@ = create_car #cheetah at -1932.1462 2007.8865 899.1898

 

:yaser_10

if

$CHOICE == 4

jf @yaser_11

Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)

00A5: 5@ = create_car #INFERNUS at -1932.1462 2007.8865 899.1898

 

:yaser_11

if

$CHOICE == 5

jf @yaser_12

Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)

00A5: 6@ = create_car #sultan at -1932.1462 2007.8865 899.1898

 

:yaser_12

if

$CHOICE == 6

jf @yaser_13

Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)

00A5: 7@ = create_car #banshee at -1932.1462 2007.8865 899.1898

 

:yaser_13

if

$CHOICE == 7

jf @yaser_3

Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)

00A5: 8@ = create_car #BULLET at -1932.1462 2007.8865 899.1898

 

 

 

**********************************************************

 

 

what is the wrong of this

 

please help me

 

 

 

 

 

 

 

notify.gifnotify.gif

Link to comment
https://gtaforums.com/topic/468283-some-help-menu/
Share on other sites

Peppo_o'Paccio

 

 // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------0000: NOP 014B: 0@ = init_parked_car_generator #SUPERGT color -1 -1 1 alarm 100 door_lock 1 0 10000 at -1913.471 2053.901 898.8716 angle 121.703 014C: set_parked_car_generator 0@ cars_to_generate_to 101 014B: 1@ = init_parked_car_generator #JESTER color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1913.545 2035.753 898.8706 angle 51.5333 014C: set_parked_car_generator 1@ cars_to_generate_to 101 014B: 2@ = init_parked_car_generator #CHEETAH color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1904.098 2011.202 898.8707 angle 59.9091 014C: set_parked_car_generator 2@ cars_to_generate_to 101 014B: 3@ = init_parked_car_generator #INFERNUS color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1902.183 2024.858 898.8758 angle 57.2268 014C: set_parked_car_generator 3@ cars_to_generate_to 101 014B: 4@ = init_parked_car_generator #SULTAN color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1909.594 2055.72 904.4489 angle 69.8786 014C: set_parked_car_generator 4@ cars_to_generate_to 101 014B: 5@ = init_parked_car_generator #BANSHEE color -1 -1 1 alarm 0 door_lock 0 0 10000 at -1907.139 2043.865 904.9306 angle 69.8786 014C: set_parked_car_generator 5@ cars_to_generate_to 101 014B: 6@ = init_parked_car_generator #BULLET color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1905.225 2022.77 904.5448 angle 63.5391 014C: set_parked_car_generator 6@ cars_to_generate_to 101 014B: 7@ = init_parked_car_generator #COMET color -1 -1 1 alarm 0 door_lock 1 0 10000 at -1900.494 2009.559 904.5422 angle 63.5391 014C: set_parked_car_generator 7@ cars_to_generate_to 10103BC: 8@ = create_sphere_at -1916.2114 2010.4999 899.3575 radius 1.5// Only use local variables, if not the game may crash:yaser_1Model.Load(#WMYBMX)Model.Load(#OMYST)Model.Load(#MAFBOSS)Model.Load(#SUPERGT)Model.Load(#JESTER)Model.Load(#CHEETAH)Model.Load(#INFERNUS)Model.Load(#SULTAN)Model.Load(#BANSHEE)Model.Load(#BULLET)Model.Load(#COMET)038B: load_requested_models // You can delete this:yaser_2wait 0 // You have to add a wait hereif and  Model.Available(506)  Model.Available(559)  Model.Available(415)  Model.Available(411)  Model.Available(560)  Model.Available(429)  Model.Available(541)  Model.Available(480)  Model.Available(13)else_jump @yaser_2 wait 0 // This is irrilevant, you can delete itif00ED:   actor $PLAYER_ACTOR 0 near_point -1916.2114 2010.4999 radius 0.5 0.5 on_footjf @yaser_2:yaser_301B4: set_player $PLAYER_CHAR can_move 0 wait 10008D4: 9@ = create_panel_with_title 'DUMMY' position 25.0 145.0 width 230.0 columns 1 interactive 1 background 1 alignment 1 08DB: set_panel 9@ column 0 header 'DUMMY' data 'IE16' 'IE10' 'IE11' 'IE12' 'IE13' 'IE14' 'IE15' 'IE15' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'  // Local variables:yaser_4wait 0 if 00E1:   player 0 pressed_key 8 jf @yaser_508DA: remove_panel 9@03E6: remove_text_box // There aren't any texts: delete it :D01B4: set_player $PLAYER_CHAR can_move 1Model.Destroy(506)Model.Destroy(559)Model.Destroy(415)Model.Destroy(411)Model.Destroy(560)Model.Destroy(429)Model.Destroy(541)Model.Destroy(480)Model.Destroy(13)repeatwait 0until 80ED:   not actor $PLAYER_ACTOR 0 near_point -1916.2114 2010.4999 radius 1.5 1.5 on_foot jump @yaser_1:yaser_5wait 0if00E1:   player 0 pressed_key 9jf @yaser_408D7: 10@ = panel 9@ active_row 08DA: remove_panel [email protected]($PLAYER_CHAR, 1) 03E6: remove_text_box // Again, delete itif 10@ == 0jf @yaser_600BA: show_text_styled GXT 'BEEFY' time 4000 style 20109: player $PLAYER_CHAR money += -400000 // I think you can't subtract money in your way; try this00A5: 11@ = create_car #supergt at -1932.1462 2007.8865 899.1898Car.RemoveReferences(11@)jump @yaser_1 :yaser_6if10@ == 1jf @yaser_7Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)00A5: 11@ = create_car #comet at -1932.1462 2007.8865 899.1898Car.RemoveReferences(11@)jump @yaser_1:yaser_7if10@ == 2jf @yaser_8Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)00A5: 11@ = create_car #JESTER at -1932.1462 2007.8865 899.1898Car.RemoveReferences(11@)jump @yaser_1:yaser_8if10@ == 3jf @yaser_9Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)00A5: 11@ = create_car #cheetah at -1932.1462 2007.8865 899.1898Car.RemoveReferences(11@)jump @yaser_1:yaser_9if10@ == 4jf @yaser_10Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)00A5: 11@ = create_car #INFERNUS at -1932.1462 2007.8865 899.1898Car.RemoveReferences(11@)jump @yaser_1:yaser_10if10@ == 5jf @yaser_11Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)00A5: 11@ = create_car #sultan at -1932.1462 2007.8865 899.1898Car.RemoveReferences(11@)jump @yaser_1:yaser_11if10@ == 6jf @yaser_12Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)00A5: 11@ = create_car #banshee at -1932.1462 2007.8865 899.1898Car.RemoveReferences(11@)jump @yaser_1:yaser_12if10@ == 7jf @yaser_12Actor.PutAt($PLAYER_ACTOR, -1963.006, 2044.072, 898.33)00A5: 11@ = create_car #BULLET at -1932.1462 2007.8865 899.1898Car.RemoveReferences(11@)jump @yaser_1 // Your script doesn't end 

 

 

Try those modifies and then try your script. If there are any problems, just tell me. Remember to use the

 tags. 
Edited by Peppo_o'Paccio
Link to comment
https://gtaforums.com/topic/468283-some-help-menu/#findComment-1060311062
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.