Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Game crashes because of code.


Pie015
 Share

Recommended Posts

I have been trying to a camp somewhere in desert but when i add the stuff the game crashes???? angry.gifcry.gif

 

1452 = is a 3/4 house

1442 = A barrel of fire

 

 

// 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---------------thread 'MEN' 0A95: enable_thread_saving Object.Create([email protected], 1452, -655.2565, 2376.155, 160.3875)                        Object.Create([email protected], 1442, -634.2145, 2358.989, 158.4022)

 

Link to comment
Share on other sites

add

 

0A93:

in the end

remember: every script needs an end or it has to run in a loop

 

 

Edited by The_Siggi
Link to comment
Share on other sites

@james227uk

 

Regarding the claim that objects don't need to be loaded... I tried it and my game crashed. So mustn't there by any particular requirements of the object?

Link to comment
Share on other sites

did anyone even TRIED what i said?

because i checked it now and IT WORKED!!

Edited by yair1221
Link to comment
Share on other sites

did anyone even TRIED what i said?

because i checked it now and IT WORKED!!

user posted image

man, the syntax is variable...

 

[email protected] = Object.Create(Model, X float, Y float, Z float)

 

 

and

 

 

Object.Create([email protected], Model,  X float, Y float, Z float)

 

 

both works... thats what James told you monocle.gif

Link to comment
Share on other sites

 

did anyone even TRIED what i said? because i checked it now and IT WORKED!!

 

Beginner coder continuing to tell intermidate-advanced coders their syntax is wrong =

 

user posted image

 

Read my previous post. BOTH are correct.

 

@Deji

 

This is the opening block to my Care Package script, it works perfect and I've used it about 2,000,000 times now

 

 

{$CLEO .cs}thread 'CAREP' :CAREP_11wait 0 0ADC: "CARE" else_jump @CAREP_11 Model.Load(#SEASPAR)Model.Load(#ARMY)04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 5.0 100.0 30.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.0 30.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 -4.00AAC: [email protected] = load_audiostream "CLEO\j227ukMW2\CarePackage.mp3" //IF and SET:CAREP_132wait 0 if and  Model.Available(#SEASPAR)  Model.Available(#ARMY)  0AAC: [email protected] = load_audiostream "CLEO\j227ukMW2\CarePackage.mp3" //IF and SETelse_jump @CAREP_132 064B: [email protected] = create_particle "SMOKE_FLARE" at [email protected] [email protected] [email protected] type 1 064C: make_particle [email protected] visible0AAD: set_audiostream [email protected] perform_action 1wait 5000 [email protected] = Car.Create(#SEASPAR, [email protected], [email protected], [email protected])Car.SetImmunities([email protected], 1, 1, 1, 1 , 1)0129: [email protected] = create_actor_pedtype 23 model #ARMY in_car [email protected] driverseat 0825: set_helicopter [email protected] instant_rotor_start 04A2: set_heli [email protected] fly_to [email protected] [email protected] [email protected] altitude_between 27.0 and 30.0  :CAREP_255wait 0 if01AD:   car [email protected] sphere 0 near_point [email protected] [email protected] radius 5.0 5.0 else_jump @CAREP_255if0185:   car [email protected] health >= 100jf @CAREP_2788Car.LockInCurrentPosition([email protected], True)  0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 -3.0 0209: [email protected] = random_int_in_ranges 0 8:CAREP_387wait 0if   [email protected] == 0jf @CAREP_661 Model.Load(#DESERT_EAGLE):CAREP_396wait 0 if   Model.Available(#DESERT_EAGLE)else_jump @CAREP_396 [email protected] = Object.Create(1224, [email protected], [email protected], [email protected])Object.CollisionDetection([email protected]) = True0392: make_object [email protected] moveable 109CA: set_object [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 0743: heli [email protected] fly_to 0.0 0.0 0.0 altitude 27.0 30.0 0ADF: add_dynamic_GXT_entry "_DEAGLE" text "PRESS Y FOR DESERT EAGLE"064E: stop_particle [email protected] Car.LockInCurrentPosition([email protected], False)

 

 

I was thinking that maybe certain objects don't need to be loaded, but I used the model of the Aircraft Carrier at the Easter Basin Naval Docks, and it created fine too, without loading.

 

I used

 

 

Object.Create([email protected])

Object.Init([email protected])

 

 

And both worked.

Edited by james227uk
Link to comment
Share on other sites

I think some types of object have to be loaded the most don't have to be loaded.

Only one time my game crashed for that reason.

dozingoff.gif

Link to comment
Share on other sites

works great for me

dont know if both syntax' are right or wrong

but for me it works

maybe its something else about the code

Link to comment
Share on other sites

works great for me

dont know if both syntax' are right or wrong

but for me it works

maybe its something else about the code

READ! FOR GODS SAKE READ

 

WE HAVE BOTH TOLD YOU BOTH SYNTAXS ARE CORRECT!

Link to comment
Share on other sites

works great for me

dont know if both syntax' are right or wrong

but for me it works

maybe its something else about the code

READ! FOR GODS SAKE READ

 

WE HAVE BOTH TOLD YOU BOTH SYNTAXS ARE CORRECT!

WHOOOOOOOOOOOOOOAHHHh!!! So many people replyed 0_0! How do i lock this topic!?

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
 Share

  • 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.