Jump to content

External Script - doesn't work


MatiSk8

Recommended Posts

Hi

I have a problem with my External Script (ENGINE).

GTA works correctly, but my script doesn't work.

 

Code:

 

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 1DEFINE OBJECT SANNY BUILDER 3.03      DEFINE MISSIONS 0DEFINE EXTERNAL_SCRIPTS 1 // Use -1 in order not to compile AAA scriptDEFINE SCRIPT ENGINE AT @ENOFF         // 0DEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.1.0027}//-------------MAIN---------------thread 'MAIN' set_weather 5 00C0: set_current_time_hours_to 11 minutes_to 0 01F0: set_max_wanted_level_to 6 $PLAYER_CHAR = Player.Create(#NULL, 40.73471, 8.999814, 261.8519)$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)Camera.SetBehindPlayerActor.Angle($PLAYER_ACTOR) = 0.0Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)Player.SetClothes($PLAYER_CHAR, "SUIT1TRBLK", "SUIT1TR", Legs)Player.SetClothes($PLAYER_CHAR, "SHOEDRESSBLK", "SHOE", Shoes)Player.SetClothes($PLAYER_CHAR, "TUXEDO", "SUIT2", Torso)Player.Build($PLAYER_CHAR)Player.CanMove($PLAYER_CHAR) = TruePlayer.Money($PLAYER_CHAR) += 7000016C: restart_if_wasted_at 40.73471 8.999814 261.8519 angle 0.0 town_number 0 016D: restart_if_busted_at 40.73471 8.999814 261.8519 angle 0.0 town_number 0 thread 'S_ENGINE' :S_ENGINE_19wait 0 if   Player.Defined($PLAYER_CHAR)jf @S_ENGINE_19 wait 0 0926: $SCRIPT_STATUS = external_script_status 0 (ENGINE) if  $SCRIPT_STATUS == 0 jf @S_ENGINE_92 08A9: load_external_script 0 (ENGINE) if 08AB:   external_script 0 (ENGINE) loaded jf @S_ENGINE_92 0913: run_external_script 0 (ENGINE)  :S_ENGINE_92wait 0 jump @S_ENGINE_19 090F: end_external_script 0 (ENGINE) jump @S_ENGINE_19 fade 1 0 end_thread //-------------External script 0 (ENGINE)---------------:ENOFFthread 'ENOFF' :ENOFF_11wait 10 if and  Player.Defined($PLAYER_CHAR)00E1:   player 0 pressed_key 11 jf @ENOFF_11 062A: change_float_stat 23 to 999.0 end_thread

 

 

What is bad?

 

PS: Sorry for my bad English.

Link to comment
Share on other sites

Ok, you can also use the script of thread 'S_ENGINE' as part of the main thread

In this case delete this entry:

 

thread 'S_ENGINE'

 

because it should be only one thread, should be only the main thread!

 

 

Your externscript works and the extern script starter also

Add text lines to test it

To see the state change needs the rebuild Player code 070D

 

062A: change_float_stat 23 to 999.0070D: $PLAYER_CHAR

 

 

 

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 1DEFINE OBJECT SANNY BUILDER 3.03      DEFINE MISSIONS 0DEFINE EXTERNAL_SCRIPTS 1 // Use -1 in order not to compile AAA scriptDEFINE SCRIPT ENGINE AT @ENOFF         // 0DEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.1.0027}//-------------MAIN---------------thread 'MAIN'set_weather 500C0: set_current_time_hours_to 11 minutes_to 001F0: set_max_wanted_level_to 6$PLAYER_CHAR = Player.Create(#NULL, 40.73471, 8.999814, 13.8519)$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)Camera.SetBehindPlayerActor.Angle($PLAYER_ACTOR) = 0.0Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)Player.SetClothes($PLAYER_CHAR, "SUIT1TRBLK", "SUIT1TR", Legs)Player.SetClothes($PLAYER_CHAR, "SHOEDRESSBLK", "SHOE", Shoes)Player.SetClothes($PLAYER_CHAR, "TUXEDO", "SUIT2", Torso)Player.Build($PLAYER_CHAR)Player.CanMove($PLAYER_CHAR) = TruePlayer.Money($PLAYER_CHAR) += 7000016C: restart_if_wasted_at 40.73471 8.999814 261.8519 angle 0.0 town_number 0016D: restart_if_busted_at 40.73471 8.999814 261.8519 angle 0.0 town_number 0:S_ENGINE_19wait 0if Player.Defined($PLAYER_CHAR)jf @S_ENGINE_19wait 00926: $SCRIPT_STATUS = external_script_status 0 (ENGINE)if$SCRIPT_STATUS == 0jf @S_ENGINE_9208A9: load_external_script 0 (ENGINE)if08AB:   external_script 0 (ENGINE) loadedjf @S_ENGINE_920913: run_external_script 0 (ENGINE)  00BA: text_styled 'fem_on'  2000 ms  4  // MISSION FAILED!:S_ENGINE_92wait 0jump @S_ENGINE_19090F: end_external_script 0 (ENGINE)jump @S_ENGINE_19//-------------External script 0 (ENGINE)---------------:ENOFFthread 'ENOFF':ENOFF_11wait 10if and Player.Defined($PLAYER_CHAR)00E1:   player 0 pressed_key 11jf @ENOFF_11062A: change_float_stat 23 to 999.0062A: change_stat 21 (fat) to 900.0 // float00BA: text_styled 'fem_off'  5000 ms  1  // MISSION FAILED!070D: $PLAYER_CHARend_thread

 

Edited by ZAZ
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
  • 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.