Pie015 Posted August 15, 2010 Share Posted August 15, 2010 I have been trying to a camp somewhere in desert but when i add the stuff the game crashes???? 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 More sharing options...
TheSiggi Posted August 15, 2010 Share Posted August 15, 2010 (edited) add 0A93: in the end remember: every script needs an end or it has to run in a loop Edited August 15, 2010 by The_Siggi Link to comment Share on other sites More sharing options...
Pie015 Posted August 15, 2010 Author Share Posted August 15, 2010 add 0A93: in the end Ok, I did. Anything else i need to add? Link to comment Share on other sites More sharing options...
TheSiggi Posted August 15, 2010 Share Posted August 15, 2010 no just 0A93: Link to comment Share on other sites More sharing options...
BnB Posted August 15, 2010 Share Posted August 15, 2010 Nothing Link to comment Share on other sites More sharing options...
james227uk Posted August 15, 2010 Share Posted August 15, 2010 Why do you add this to your scripts: // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}//-------------MAIN--------------- It's unnecessary Link to comment Share on other sites More sharing options...
yair1221 Posted August 15, 2010 Share Posted August 15, 2010 you cant object.create([email protected]) you need [email protected] = object.create(...) Link to comment Share on other sites More sharing options...
TheSiggi Posted August 15, 2010 Share Posted August 15, 2010 (edited) nope have a look: Edited August 15, 2010 by The_Siggi Link to comment Share on other sites More sharing options...
james227uk Posted August 15, 2010 Share Posted August 15, 2010 you cantobject.create([email protected]) you need [email protected] = object.create(...) Completely false. It is valid syntax. Try it yourself Noobs spreading false information -_- Link to comment Share on other sites More sharing options...
yair1221 Posted August 15, 2010 Share Posted August 15, 2010 just try it Link to comment Share on other sites More sharing options...
Deji Posted August 15, 2010 Share Posted August 15, 2010 @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 More sharing options...
yair1221 Posted August 15, 2010 Share Posted August 15, 2010 (edited) did anyone even TRIED what i said? because i checked it now and IT WORKED!! Edited August 15, 2010 by yair1221 Link to comment Share on other sites More sharing options...
TheSiggi Posted August 15, 2010 Share Posted August 15, 2010 did anyone even TRIED what i said?because i checked it now and IT WORKED!! 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 Link to comment Share on other sites More sharing options...
james227uk Posted August 15, 2010 Share Posted August 15, 2010 (edited) 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 = 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 August 15, 2010 by james227uk Link to comment Share on other sites More sharing options...
BnB Posted August 15, 2010 Share Posted August 15, 2010 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. Link to comment Share on other sites More sharing options...
yair1221 Posted August 15, 2010 Share Posted August 15, 2010 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 More sharing options...
BnB Posted August 15, 2010 Share Posted August 15, 2010 If it does not works then load the object models. Link to comment Share on other sites More sharing options...
james227uk Posted August 15, 2010 Share Posted August 15, 2010 works great for medont 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 More sharing options...
Pie015 Posted August 15, 2010 Author Share Posted August 15, 2010 works great for medont 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 More sharing options...
james227uk Posted August 15, 2010 Share Posted August 15, 2010 You don't. You let it die 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