SigiloHQ Posted March 19, 2016 Share Posted March 19, 2016 This is my Race Mod, but it crash my game why? why??? {$CLEO .cs}//-------------MAIN---------------03A4: name_thread 'SGLHQ_CM' 0002: jump @SGLHQ_CM_26 :SGLHQ_CM_260001: wait 0 ms 00D6: if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @SGLHQ_CM_26 00D6: if 0038: $ONMISSION == 0 004D: jump_if_false @SGLHQ_CM_26 04CE: [email protected] = create_icon_marker 53 at 2689.502 1936.987 8.456 :SGLHQ_CM_860001: wait 0 ms 00D6: if 0038: $ONMISSION == 0 004D: jump_if_false @SGLHQ_CM_86 00D6: if 8100: not actor $PLAYER_ACTOR in_sphere 2689.502 1936.987 8.456 radius 2.0 2.0 2.0 sphere 0 in_car 004D: jump_if_false @SGLHQ_CM_86 00D6: if and02A0: actor $PLAYER_ACTOR stopped 00FF: actor $PLAYER_ACTOR sphere 1 in_sphere 2689.502 1936.987 8.456 radius 2.0 2.0 2.0 on_foot 004D: jump_if_false @SGLHQ_CM_86 060A: create_decision_maker_type 0 store_to [email protected] // decision\allowed\m_.ped files 07E5: copy_decision_maker [email protected] to [email protected] 01B4: set_player $PLAYER_CHAR can_move 0 0004: $ONMISSION = 1 0164: disable_marker [email protected] 03BF: set_player $PLAYER_CHAR ignored_by_everyone 1 016A: fade 0 time 500 0247: load_model #NTO_B_TW 0004: $411 = 0 0004: $412($411,4i) = -1 0004: $489 = 0 0004: $490($489,4i) = -1 0004: $425 = 0 0004: $426($425,12i) = -1 0004: $439 = 0 0004: $449($439,4i) = -1 0004: $484 = 0 0247: load_model #COLT45 0247: load_model #SILENCED 0247: load_model #DESERT_EAGLE 0247: load_model #CHROMEGUN 0247: load_model #SAWNOFF 0247: load_model #SHOTGSPA 0247: load_model #MICRO_UZI 0247: load_model #MP5LNG :SGLHQ_CM_3820001: wait 0 ms 00D6: if and0248: model #COLT45 available 0248: model #SILENCED available 0248: model #DESERT_EAGLE available 0248: model #CHROMEGUN available 0248: model #SAWNOFF available 0248: model #SHOTGSPA available 0248: model #MICRO_UZI available 0248: model #MP5LNG available 004D: jump_if_false @SGLHQ_CM_382 0002: jump @CARGANDO_AUTOS_19 03A4: name_thread 'CARGANDO_AUTOS' :CARGANDO_AUTOS_190001: wait 0 ms 00D6: if 8028: not $411 >= 4 004D: jump_if_false @DEF_COORDENADAS_19 0209: [email protected] = random_int_in_ranges 0 13 :CARGANDO_AUTOS_5000D6: if 8029: not [email protected] >= 2 004D: jump_if_false @CARGANDO_AUTOS_110 0006: $412($411,4i) = 419 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_11000D6: if 0039: [email protected] == 2 004D: jump_if_false @CARGANDO_AUTOS_170 0006: $412($411,4i) = 439 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_17000D6: if 0039: [email protected] == 3 004D: jump_if_false @CARGANDO_AUTOS_230 0006: $412($411,4i) = 475 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_23000D6: if 0039: [email protected] == 4 004D: jump_if_false @CARGANDO_AUTOS_290 0006: $412($411,4i) = 412 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_29000D6: if 0039: [email protected] == 5 004D: jump_if_false @CARGANDO_AUTOS_350 0006: $412($411,4i) = 549 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_35000D6: if 0039: [email protected] == 6 004D: jump_if_false @CARGANDO_AUTOS_410 0006: $412($411,4i) = 504 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_41000D6: if 0039: [email protected] == 7 004D: jump_if_false @CARGANDO_AUTOS_470 0006: $412($411,4i) = 542 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_47000D6: if 0039: [email protected] == 8 004D: jump_if_false @CARGANDO_AUTOS_530 0006: $412($411,4i) = 517 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_53000D6: if 0039: [email protected] == 9 004D: jump_if_false @CARGANDO_AUTOS_590 0006: $412($411,4i) = 518 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_59000D6: if 0039: [email protected] == 10 004D: jump_if_false @CARGANDO_AUTOS_650 0006: $412($411,4i) = 500 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_65000D6: if 0039: [email protected] == 11 004D: jump_if_false @CARGANDO_AUTOS_710 0006: $412($411,4i) = 422 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_71000D6: if 0028: [email protected] >= 12 004D: jump_if_false @CARGANDO_AUTOS_50 0006: $412($411,4i) = 470 0247: load_model $412($411,4i) 0050: gosub @CARGANDO_AUTOS_770 0008: $411 += 1 0002: jump @CARGANDO_AUTOS_19 :CARGANDO_AUTOS_7700001: wait 0 ms 00D6: if 0248: model $412($411,4i) available 004D: jump_if_false @CARGANDO_AUTOS_770 0051: return 03A4: name_thread 'DEF_COORDENADAS' :DEF_COORDENADAS_190004: $411 = 0 :DEF_COORDENADAS_260001: wait 0 ms 00D6: if 8038: not $411 == 0 004D: jump_if_false @DEF_COORDENADAS_127 00D6: if 8038: not $411 == 1 004D: jump_if_false @DEF_COORDENADAS_201 00D6: if 8038: not $411 == 2 004D: jump_if_false @DEF_COORDENADAS_164 00D6: if 8038: not $411 == 3 004D: jump_if_false @DEF_COORDENADAS_238 00D6: if 0028: $411 >= 4 004D: jump_if_false @CREAND_CHOFERES_19 0002: jump @CREAND_CHOFERES_19 :DEF_COORDENADAS_1270007: [email protected] = 2712.049 0007: [email protected] = 1915.741 0007: [email protected] = 6.3722 0002: jump @CREANDO_CARROS_19 :DEF_COORDENADAS_1640007: [email protected] = 2705.655 0007: [email protected] = 1904.213 0007: [email protected] = 6.8246 0002: jump @CREANDO_CARROS_19 :DEF_COORDENADAS_2010007: [email protected] = 2712.077 0007: [email protected] = 1903.89 0007: [email protected] = 6.6042 0002: jump @CREANDO_CARROS_19 :DEF_COORDENADAS_2380007: [email protected] = 2705.606 0007: [email protected] = 1915.925 0007: [email protected] = 6.3578 0002: jump @CREANDO_CARROS_19 03A4: name_thread 'CREANDO_CARROS' :CREANDO_CARROS_190001: wait 0 ms 00D6: if 8028: not $411 >= 4 004D: jump_if_false @CREAND_CHOFERES_19 00A5: $490($489,4i) = create_car $412($411,4i) at [email protected] [email protected] [email protected] 0249: release_model $412($411,4i) 02AC: set_car $490($489,4i) immunities BP 1 FP 1 EP 1 CP 1 MP 1 0519: set_car $490($489,4i) locked 1 03AB: set_car $490($489,4i) strong 1 01EC: make_car $490($489,4i) very_heavy 1 0175: set_car $490($489,4i) Z_angle_to 180.2035 0227: [email protected] = car $490($489,4i) health 000A: [email protected] += 1500 0224: set_car $490($489,4i) health_to [email protected] 053F: set_car $490($489,4i) tires_vulnerability 0 0186: $449($439,4i) = create_marker_above_car $490($489,4i) 018B: set_marker $449($439,4i) radar_mode 2 0168: set_marker $449($439,4i) size 2 0587: enable_car $490($489,4i) validate_position 1 0050: gosub @CREANDO_CARROS_267 0008: $489 += 1 0008: $411 += 1 0008: $439 += 1 0002: jump @DEF_COORDENADAS_26 :CREANDO_CARROS_2670006: [email protected] = 0 0209: [email protected] = random_int_in_ranges 3 8 0002: jump @CREANDO_CARROS_297 :CREANDO_CARROS_290000A: [email protected] += 1 :CREANDO_CARROS_2970001: wait 0 ms 00D6: if and802D: not [email protected] >= [email protected] // (int) 056E: car $490($489,4i) defined 004D: jump_if_false @CREANDO_CARROS_416 0730: car $490($489,4i) damage_door [email protected] 0697: set_car $490($489,4i) remove_component [email protected] visible_effect_flag 0 0689: set_car $490($489,4i) remove_door [email protected] removed_door_visible 0 00D6: if 0038: $489 == 2 004D: jump_if_false @CREANDO_CARROS_290 0165: set_marker $449($439,4i) color_to 7 07E0: set_marker $449($439,4i) type_to 1 0002: jump @CREANDO_CARROS_290 :CREANDO_CARROS_4160051: return 03A4: name_thread 'CREAND_CHOFERES' :CREAND_CHOFERES_190004: $489 = 0 0004: $411 = 0 :CREAND_CHOFERES_330001: wait 0 ms 00D6: if 8028: not $425 >= 3 004D: jump_if_false @CREAN_PASAJEROS_19 0209: [email protected] = random_int_in_ranges 9 41 0247: load_model [email protected] :CREAND_CHOFERES_690001: wait 0 ms 00D6: if 0248: model [email protected] available 004D: jump_if_false @CREAND_CHOFERES_69 0129: $426($425,12i) = create_actor_pedtype 4 model [email protected] in_car $490($489,4i) driverseat 0249: release_model [email protected] 0223: set_actor $426($425,12i) health_to 500 039E: set_actor $426($425,12i) locked 1 while_in_car 060B: set_actor $426($425,12i) decision_maker_to [email protected] 0008: $489 += 1 0008: $425 += 1 0002: jump @CREAND_CHOFERES_33 03A4: name_thread 'CREAN_PASAJEROS' :CREAN_PASAJEROS_190004: $489 = 0 0002: jump @CREAN_PASAJEROS_40 :CREAN_PASAJEROS_330008: $489 += 1 :CREAN_PASAJEROS_400001: wait 0 ms 0004: $484 = 0 00D6: if 8028: not $489 >= 4 004D: jump_if_false @TODO_LISTO_19 0006: [email protected] = -1 01EA: [email protected] = car $490($489,4i) max_passengers :CREAN_PASAJEROS_880209: [email protected] = random_int_in_ranges 9 41 0247: load_model [email protected] :CREAN_PASAJEROS_1020001: wait 0 ms 00D6: if 802E: not $484 >= [email protected] // (int) 004D: jump_if_false @CREAN_PASAJEROS_33 00D6: if 0248: model [email protected] available 004D: jump_if_false @CREAN_PASAJEROS_102 01C8: $426($425,12i) = create_actor_pedtype 4 model [email protected] in_car $490($489,4i) passenger_seat $484 0249: release_model [email protected] 0223: set_actor $426($425,12i) health_to 500 039E: set_actor $426($425,12i) locked 1 while_in_car 0982: set_actor $426($425,12i) stay_in_car_when_dead 1 060B: set_actor $426($425,12i) decision_maker_to [email protected] 0209: [email protected] = random_int_in_ranges 22 29 01B2: give_actor $426($425,12i) weapon [email protected] ammo 9999 // Load the weapon model before using this 00D6: if 8028: not $489 >= 2 004D: jump_if_false @CREAN_PASAJEROS_342 008B: [email protected] = $489 // (int) 0209: [email protected] = random_int_in_ranges 2 3 008A: $489 = [email protected] // (int) 0713: actor $426($425,12i) driveby_actor -1 car $490($489,4i) point 0.0 0.0 0.0 radius 100.0 8 1 firing_rate 90 008A: $489 = [email protected] // (int) 0002: jump @CREAN_PASAJEROS_419 :CREAN_PASAJEROS_342008B: [email protected] = $489 // (int) 0209: [email protected] = random_int_in_ranges 0 1 008A: $489 = [email protected] // (int) 0713: actor $426($425,12i) driveby_actor -1 car $490($489,4i) point 0.0 0.0 0.0 radius 100.0 8 1 firing_rate 90 008A: $489 = [email protected] // (int) :CREAN_PASAJEROS_4190008: $425 += 1 0008: $484 += 1 00D6: if 802E: not $484 >= [email protected] // (int) 004D: jump_if_false @CREAN_PASAJEROS_33 0002: jump @CREAN_PASAJEROS_88 03A4: name_thread 'TODO_LISTO' :TODO_LISTO_190004: $489 = 3 072A: put_actor $PLAYER_ACTOR into_car $490($489,4i) driverseat 0249: release_model #COLT45 0249: release_model #SILENCED 0249: release_model #DESERT_EAGLE 0249: release_model #CHROMEGUN 0249: release_model #SAWNOFF 0249: release_model #SHOTGSPA 0249: release_model #MICRO_UZI 0249: release_model #MP5LNG :TODO_LISTO_780001: wait 0 ms 00D6: if 0449: actor $PLAYER_ACTOR in_a_car 004D: jump_if_false @TODO_LISTO_78 0373: set_camera_directly_behind_player 05D6: clear_scmpath 05D7: add_point_to_scmpath 2687.294 1026.768 6.817 05D7: add_point_to_scmpath 2612.281 911.1722 6.8159 05D7: add_point_to_scmpath 2478.241 851.3785 6.8233 05D7: add_point_to_scmpath 1352.493 863.5654 6.3672 05D7: add_point_to_scmpath 1258.086 936.4427 6.3614 05D7: add_point_to_scmpath 1222.815 1041.731 6.3613 05D7: add_point_to_scmpath 1228.375 2300.189 6.2825 05D7: add_point_to_scmpath 1282.851 2403.66 6.2832 07CC: set_player $PLAYER_CHAR button_15 001B9: set_actor $PLAYER_ACTOR armed_weapon_to 0016A: fade 1 time 500 00BE: text_clear_all 00BA: show_text_styled GXT 'ESLI' time 1000 style 4 018C: play_sound 1052 at 0.0 0.0 0.0 0001: wait 1000 ms 00BA: show_text_styled GXT 'YAWE' time 1000 style 4 018C: play_sound 1053 at 0.0 0.0 0.0 01B4: set_player $PLAYER_CHAR can_move 1 0004: $489 = 0 0004: $425 = 0 0004: $527 = 0 0004: $528 = 0 0004: $529 = 0 0109: player $PLAYER_CHAR money += -10000018A: $xD = create_checkpoint_at 2612.281 911.1722 6.8159 06D5: $525 = create_racing_checkpoint_at 2687.294 1026.768 6.817 point_to 2687.294 1026.768 6.817 type 2 radius 10.0 :TODO_LISTO_4080001: wait 0 ms 06E7: [email protected] = add_car_component #NTO_B_TW to_car $490($489,4i) 0006: [email protected] = -1 0519: set_car $490($489,4i) locked 0 02AC: set_car $490($489,4i) immunities BP 0 FP 0 EP 0 CP 0 MP 0 00D6: if 8028: not $489 >= 3 004D: jump_if_false @TIEMPO_CARRERA_19 06BB: set_actor $426($425,12i) drive_car $490($489,4i) speed 1.0 along_SCM_path 0008: $489 += 1 0008: $425 += 1 0002: jump @TODO_LISTO_408 03A4: name_thread 'TIEMPO_CARRERA' :TIEMPO_CARRERA_190001: wait 0 ms 0004: $425 = 2 0004: $489 = 0 00D6: if or8119: not car $490($489,4i) wrecked 0038: $527 == 1 004D: jump_if_false @TIEMPO_CARRERA_196 0008: $489 += 1 00D6: if or8119: not car $490($489,4i) wrecked 0038: $528 == 1 004D: jump_if_false @TIEMPO_CARRERA_196 0008: $489 += 1 00D6: if or8119: not car $490($489,4i) wrecked 0038: $529 == 1 004D: jump_if_false @TIEMPO_CARRERA_359 0002: jump @XD :TIEMPO_CARRERA_1390001: wait 0 ms 00D6: if 802E: not $489 >= [email protected] // (int) 004D: jump_if_false @CREANDO_CARROS_416 01EA: [email protected] = car $490($489,4i) max_passengers 005E: $425 += [email protected] // (int) 0008: $489 += 1 0002: jump @TIEMPO_CARRERA_139 :TIEMPO_CARRERA_1960001: wait 0 ms 0004: $489 = 0 0004: [email protected] = 2 0050: gosub @TIEMPO_CARRERA_139 01EA: [email protected] = car $490($489,4i) max_passengers 0084: $530 = $425 // (int) 005E: $530 += [email protected] // (int) 0008: $489 += 1 01EA: [email protected] = car $490($489,4i) max_passengers 005E: $530 += [email protected] // (int) 0008: $530 += 1 0008: $425 += 1 0004: $489 = 1 00D6: if 0119: car $490($489,4i) wrecked 004D: jump_if_false @TIEMPO_CARRERA_338 0004: $489 = 0 0004: $528 = 1 0002: jump @TIEMPO_CARRERA_467 :TIEMPO_CARRERA_3380004: $489 = 1 0004: $527 = 1 0002: jump @TIEMPO_CARRERA_467 :TIEMPO_CARRERA_3590001: wait 0 ms 0004: $489 = 0 01EA: [email protected] = car $490($489,4i) max_passengers 0084: $530 = $425 // (int) 005E: $530 += [email protected] // (int) 0008: $489 += 1 01EA: [email protected] = car $490($489,4i) max_passengers 005E: $530 += [email protected] // (int) 0008: $530 += 1 0008: $425 += 1 0004: $489 = 3 0004: $529 = 1 0002: jump @TIEMPO_CARRERA_467 :TIEMPO_CARRERA_4600008: $425 += 1 :TIEMPO_CARRERA_4670001: wait 0 ms 00D6: if 802C: not $425 >= $530 // (int) 004D: jump_if_false @XD 00D6: if and056D: actor $426($425,12i) defined 0184: actor $426($425,12i) health >= 1 8448: not actor $426($425,12i) in_car $490($489,4i) 004D: jump_if_false @TIEMPO_CARRERA_460 0713: actor $426($425,12i) driveby_actor -1 car $490($489,4i) point 0.0 0.0 0.0 radius 100.0 8 1 firing_rate 90 0002: jump @TIEMPO_CARRERA_460 :XD // LOOP0001: wait 0 ms 00D6: if not Actor.Dead($PLAYER_ACTOR)004D: jump_if_false @XD if0038: $527 == 0 jf @XDjump @TIEMPO_CARRERA_19 Link to comment Share on other sites More sharing options...
ZAZ Posted March 21, 2016 Share Posted March 21, 2016 This is my Race Mod, but it crash my game why? why???Because of lot global varsDon't use globals! only $PLAYER_CHAR, $PLAYER_ACTOR, $ONMISSION are suitable SigiloHQ 1 CLEO MODS CLEO Script Tutorial 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