Quantcast

Jump to content

» «
Photo

Mission not starting

2 replies to this topic
Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#1

Posted 06 January 2014 - 02:40 PM

I am a new in scm Coding And I made an amazing mission in sanny builder. i did everything

spheres.mission starter. When i open The Game there is no mission starting. no icon or sphere. i had gone to the place  where the mission occurs i find nothing. Here is the Code

 

{$CLEO .cm}
:Test_M_Start_1
03A4: name_thread 'TSTM'

:Test_M_Start_2
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false @Test_M_Start_2
00D6: if  0
0038:   $ONMISSION ==  0  // integer values
004D: jump_if_false @Test_M_Start_2

:Test_M_Start_6
00D6: if  0
00FE:   actor $PLAYER_ACTOR  1 (in-sphere)near_point 2685.0400 -166.5878 35.1329 radius  3.5  3.5  5.5
004D: jump_if_false @Test_M_Start_2
00BA: text_styled 'Maro and Beso'  1000 ms  2
0004: $ONMISSION =  1  // integer values
0A94: start_custom_mission "Maro and Beso"  //
0002: jump @Test_M_Start_2

thread 'Model'
0247: load_model #VMAFF1
0247: load_model #WMYST
0247: load_model #TEC9
0247: load_model #DESERT_EAGLE
0247: load_model #COMET
0247: load_model #BF400
0247: load_model #BAT
0247: load_model #ZR350
038B: load_requested_models

:Model_Load
00D6: if or
8248: not model #VMAFF1 available
8248: not model #WMYST available
8248: not model #TEC9 available
8248: not model #DESERT_EAGLE available
8248: not model #COMET available
8248: not model #BF400 available
8248: not model #BAT available
8248: not model #ZR350 available
004D: jump_if_false @MODEL_SPAWN                                              
0001: wait 0 ms
0002: jump @MODEL_LOAD

//FADE//
fade 0 500
repeat
wait 1000 ms
until 816B:   not fading
02A3: enable_widescreen 1

:Model_Spawn
10@ = Actor.Create(GANG6, #VMAFF1, 2667.4241, -269.6395, 37.8234)
0674: set_car_model #ZR350 numberplate "Maro2001"
00A5: $zr350 = create_car #ZR350 at 2671.6646 -269.4298 37.666
0224: set_car $zr350 health_to 500
0674: set_car_model #COMET numberplate "BESO2004"
00A5: $comet = create_car #COMET at 2683.3496 -195.7684 34.2353
5@ = Actor.CreateAsDriver(CIVMALE, #WMYST, $zr350)
01B2: give_actor 10@ weapon 5 ammo 1000
01B9: set_actor 10@ armed_weapon_to 5
0674: set_car_model #BF400 numberplate "ES98"
00A5: $bf = create_car #BF400 at 2719.0000 -504.0000 61.3750
01B2: give_actor $PLAYER_ACTOR weapon 24 ammo 30000
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 24
01B2: give_actor 5@ weapon 32 ammo 15
01B9: set_actor 5@ armed_weapon_to 32

Player.Controllable($PLAYER_CHAR, false)
Camera.SetBehindPlayer($PLAYER_CHAR)
00BA: show text_styled GXT "is it them" time 3000 style 6
0804: AS_actor $PLAYER_ACTOR walk_to 2682.2742 -181.7803 34.8671 angle 0.0 radius 0.2 animation "GRLFRD_KISS_03" IFP_file "BD_FIRE" 4.0 LA 0 LX 0 LY 0 LF 0 LT -1
wait 10000 ms
00BA: show text_styled GXT "Yes it is that stupid guys" time 3000 style 6
wait 1000 ms
00BA: show text_styled GXT "lets destroy this car" time 3000 style 6
0635: AS_actor $PLAYER_ACTOR aim_at_actor 10@ 3000 ms
wait 3000 ms
Camera.SetPosition(2672.0767, -253.2824, 35.7842, 0.0, 0.0, 0.0)
Camera.PointAt(2667.4241, -269.6395, 37.8234, 2)
074D: AS_actor 10@ turns_to_and_look_at_actor $PLAYER_ACTOR timelimit 10000 ms
00BA: show text_styled GXT "Who is This?" time 3000 style 6
00BA: show text_styled GXT "No sh*t!" time 3000 style 6
00BA: show text_styled GXT "It is The Black Guy" time 3000 style 6
05CA: AS_actor 10@ enter_car $zr350 passenger_seat 1 time -1
wait 1000 ms
00BA: show text_styled GXT "this is Bad!" time 2000 style 6
wait 2000 ms
00BA: show text_styled GXT "Maro Run!" time 2000 style 6
05D1: AS_actor 5@ drive_car $zr350 to 2487.1799 -1670.8324 13.3359 speed 100.0 0 model #ZR350 1
wait 5000 ms
Camera.Restore($PLAYER_CHAR)
Player.Controllable($PLAYER_CHAR, true)
00BA: show text_styled GXT "Cops are on you" time 5000 style 4
wait 5000 ms
00BA: show text_styled GXT "BITCHES!" time 3000 style 6

end_thread

 

please i took a whole day scripting this mission. Please Tell me What to do.


Danikov
  • Danikov

    The Fake Russian

  • Members
  • Joined: 27 Aug 2009
  • Israel

#2

Posted 06 January 2014 - 03:12 PM Edited by Danikov, 06 January 2014 - 03:45 PM.

{$CLEO .cm}
:Test_M_Start_1
03A4: name_thread 'TSTM'

:Test_M_Start_2
0001: wait  0 ms
00D6: if 
0256:   player $PLAYER_CHAR defined
004D: jump_if_false @Test_M_Start_2
00D6: if
0038:   $ONMISSION ==  0  // integer values

:Test_M_Start_6
00D6: if
00FE:   actor $PLAYER_ACTOR  1 (in-sphere)near_point 2685.0400 -166.5878 35.1329 radius  3.5  3.5  5.5
004D: jump_if_false @Test_M_Start_2
00BA: text_styled 'Maro and Beso'  1000 ms  2
0004: $ONMISSION =  1  // integer values
0A94: start_custom_mission "Maro and Beso"  //
0002: jump @Test_M_Start_2

Just from taking a look at the first lines of the script I see a problem,Can you please say what are you exactly trying to check? cause from what I see you're trying to check a number...?

'if' requires you to put a condition,that will either return true or false,0 isn't a condition at all,so it won't return you neither true or false,it will do nothing I guess.

+Edit1: Found another thing,the second jump if false in the last line of label Test_M_Start_2 shouldn't be there.

Edit2: For some reason didn't see the rest of checks,my bad,sorry,try removing the 0s from the if opcodes.

Edit3: There's another problem,the script won't continue to the other labels,the label Test_M_Start_6 is jumps back to Test_M_Start_2 whether its true or false,you should change the label name in the jump opcode to the next label you want the script to jump to once it returns true.

 

Secondly,about this one:

thread 'Model'
0247: load_model #VMAFF1
0247: load_model #WMYST
0247: load_model #TEC9
0247: load_model #DESERT_EAGLE
0247: load_model #COMET
0247: load_model #BF400
0247: load_model #BAT
0247: load_model #ZR350
038B: load_requested_models

It better be a label than an additional thread,+If I am not mistaken,a single CLEO script cannot have multiple threads and in addition to that,I think you should put a wait command,otherwise I think it will crash when it gets to this label .

So,change from it from :

thread 'Model'

to:

:Model
0001: wait 0

Moving on,the //FADE// label should be :FADE

 

Moving on again,In the label :Model_Spawn you should put wait 0 underneath it.

 

And for last,I really have no idea what's going on here  :lol: :

Player.Controllable($PLAYER_CHAR, false)
Camera.SetBehindPlayer($PLAYER_CHAR)
00BA: show text_styled GXT "is it them" time 3000 style 6
0804: AS_actor $PLAYER_ACTOR walk_to 2682.2742 -181.7803 34.8671 angle 0.0 radius 0.2 animation "GRLFRD_KISS_03" IFP_file "BD_FIRE" 4.0 LA 0 LX 0 LY 0 LF 0 LT -1
wait 10000 ms
00BA: show text_styled GXT "Yes it is that stupid guys" time 3000 style 6
wait 1000 ms
00BA: show text_styled GXT "lets destroy this car" time 3000 style 6
0635: AS_actor $PLAYER_ACTOR aim_at_actor 10@ 3000 ms
wait 3000 ms
Camera.SetPosition(2672.0767, -253.2824, 35.7842, 0.0, 0.0, 0.0)
Camera.PointAt(2667.4241, -269.6395, 37.8234, 2)
074D: AS_actor 10@ turns_to_and_look_at_actor $PLAYER_ACTOR timelimit 10000 ms
00BA: show text_styled GXT "Who is This?" time 3000 style 6
00BA: show text_styled GXT "No sh*t!" time 3000 style 6
00BA: show text_styled GXT "It is The Black Guy" time 3000 style 6
05CA: AS_actor 10@ enter_car $zr350 passenger_seat 1 time -1
wait 1000 ms
00BA: show text_styled GXT "this is Bad!" time 2000 style 6
wait 2000 ms
00BA: show text_styled GXT "Maro Run!" time 2000 style 6
05D1: AS_actor 5@ drive_car $zr350 to 2487.1799 -1670.8324 13.3359 speed 100.0 0 model #ZR350 1
wait 5000 ms
Camera.Restore($PLAYER_CHAR)
Player.Controllable($PLAYER_CHAR, true)
00BA: show text_styled GXT "Cops are on you" time 5000 style 4
wait 5000 ms
00BA: show text_styled GXT "BITCHES!" time 3000 style 6

end_thread

Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#3

Posted 06 January 2014 - 05:16 PM

Thanks Too Much That Helped me

 

 

Try visiting our website

 

osma385.wix.com/gta-station





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users