Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      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

Why this doesn't wotk


[SM]CJZera
 Share

Recommended Posts

Okay so, I'm making a cool script, surprise for now, but it doesn't work, I've found that the problem is here because it crashes right after I press the keys, not after the 5 secs wait, so I will only post the problem part.

 

 

{$CLEO .cs}//-------------MAIN---------------thread 'GNGSPWN' :STARTwait 0if andPlayer.Defined($PLAYER_CHAR)044B:   actor $PLAYER_ACTOR on_foot$ONMISSION == 0jf @STARTif and0AB0:  key_pressed 710AB0:  key_pressed 820AB0:  key_pressed 79jf @STARTModel.Load(#FAM1)    Model.Load(#FAM2)  Model.Load(#FAM3)   023C: load_special_actor 'RYDER1' as 1 // models 290-299 023C: load_special_actor 'RYDER3' as 2 // models 290-299    023C: load_special_actor 'SWEET' as 3 // models 290-299      023C: load_special_actor 'SMOKE' as 4 // models 290-299     023C: load_special_actor 'JANITOR' as 5 // models 290-299      023C: load_special_actor 'CESAR' as 6 // models 290-299      023C: load_special_actor 'BB' as 7 // models 290-299    023C: load_special_actor 'SMOKEV' as 8 // models 290-299     023C: load_special_actor 'EMMET' as 9 // models 290-299    038B: load_requested_models :SELECTwait 0if andModel.Available(#FAM1)Model.Available(#FAM2)Model.Available(#FAM3)jf @SELECTif and023D:   special_actor 1 loaded 023D:   special_actor 2 loaded 023D:   special_actor 3 loaded 023D:   special_actor 4 loaded 023D:   special_actor 5 loaded 023D:   special_actor 6 loaded 023D:   special_actor 7 loaded 023D:   special_actor 8 loaded 023D:   special_actor 9 loaded jf @SELECT04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.0 2.000BC: show_text_highpriority GXT 'GANGSPW1' time 1500 flag 1wait 5500

 

 

 

Also, little offtopic but don't know where to post, is it posible to remove markers from a savefile? I screwed up and made 4 pickups with a thread, they have now become IDK how many and I can't see any side mission markers now.

 

Thanks in advance and thanks for reading

Edited by [SM]CJZera
Link to comment
Share on other sites

 

{$CLEO .cs}//-------------MAIN---------------thread 'GNGSPWN':STARTwait 0if Player.Defined($PLAYER_CHAR)jf @STARTif and80DF:   not actor $PLAYER_ACTOR driving $ONMISSION == 00AB0:  key_pressed 710AB0:  key_pressed 820AB0:  key_pressed 79jf @STARTModel.Load(#FAM1)    Model.Load(#FAM2)  Model.Load(#FAM3)  023C: load_special_actor 'RYDER1' as 1 // models 290-299023C: load_special_actor 'RYDER3' as 2 // models 290-299    023C: load_special_actor 'SWEET' as 3 // models 290-299      023C: load_special_actor 'SMOKE' as 4 // models 290-299    023C: load_special_actor 'JANITOR' as 5 // models 290-299      023C: load_special_actor 'CESAR' as 6 // models 290-299      023C: load_special_actor 'BB' as 7 // models 290-299    023C: load_special_actor 'SMOKEV' as 8 // models 290-299    023C: load_special_actor 'EMMET' as 9 // models 290-299    038B: load_requested_models :SELECTwait 150if andModel.Available(#FAM1)Model.Available(#FAM2)Model.Available(#FAM3)023D:   special_actor 1 loaded023D:   special_actor 2 loaded023D:   special_actor 3 loaded023D:   special_actor 4 loaded023D:   special_actor 5 loaded023D:   special_actor 6 loaded023D:   special_actor 7 loaded023D:   special_actor 8 loaded023D:   special_actor 9 loadedjf @SELECT04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.0 2.000BC: show_text_highpriority GXT 'GANGSPW1' time 1500 flag 1wait 5500

 

 

Should work now! icon14.gif

 

Note: I've just got up from bed!

Link to comment
Share on other sites

spaceeinstein

You can't combine that much conditions into one if statement.

 

I don't seem to find any errors. Try deleting line by line until the game stop crashing.

Link to comment
Share on other sites

As far as I know, the limit on if conditions is less than 9 (7, 6, or something?). I may be wrong, but you can at least try smile.gif

SsZgxdL.png

Inactive in GTA/R* title modification indefinitely pursuant to a court order obtained by TTWO. Good job acting against modding!

Link to comment
Share on other sites

Well, Sanny refuses to compile 9+ conditions, and so far I think the problem is the special models load/check, the only thing that didn't crash when removing it, It could be what you say, I'll give it a go.

 

EDIT: Damn, still crashes, I think something's wrong with the special models, dunno what tho, should work

 

EDIT2: If someone knows how to properly load and check specials actorrs it would be apreciated, it's that what makes the game crash

Edited by [SM]CJZera
Link to comment
Share on other sites

BUMP

Anyone can help me making this work? the problem is with the load and check of the special actors, so help would be apreciated

Link to comment
Share on other sites

As I know, sanny builder can compile only 7 conditions using one if command.

 

:SELECTif and023D:   special_actor 1 loaded 023D:   special_actor 2 loaded 023D:   special_actor 3 loaded 023D:   special_actor 4 loaded 023D:   special_actor 5 loaded 023D:   special_actor 6 loaded 023D:   special_actor 7 loaded jf @SELECT_2 jump @SELECT_3 :SELECT_2if and023D:   special_actor 8 loaded 023D:   special_actor 9 loaded jf @SELECT:SELECT_3Put your code here...

 

012          345
678   9A   BCD
EFG HIJK LMN
OPQR  STUV
WX    YZ

Link to comment
Share on other sites

If you had clicked the help button on the error you got, you could have fixed it yourself. Anyways, I always thought it was 9 max. It's been ages since I have done heavy coding using lots of checks

Link to comment
Share on other sites

The max IS 9, I have even tried spliting them so every one is less than 7, but still, the problem is it crashes the game as soon as I press the keys

Link to comment
Share on other sites

I remember having problems with special_actor # loaded. I fixed it by using Model.Available(#SPECIAL##)

 

I can't think how, but just try it

Link to comment
Share on other sites

 

CJZera,Feb 17 2009, 15:08]The max IS 9, I have even tried spliting them so every one is less than 7, but still, the problem is it crashes the game as soon as I press the keys

Seeman wrote in sanny-help:

"0 - 1 condition 1..8 - 2 and more conditions (9 max) connected by logic operator AND.

The check return true if ALL conditions within this return true.

21..28 - 2 and more conditions (9 max), connected by logic operator OR."

 

but I had also problems with 9 in the past, i recomand to use max 8

dont be to lazy to more jumps and load checks

 

The main reason of crash is: Ryder1 didnt exist.

only Ryder and Ryder2 and 3

 

I make the special actor loading in this way:

 

{$CLEO .cs}//-------------MAIN---------------thread 'GNGSPWN':STARTwait 0ifPlayer.Defined($PLAYER_CHAR)jf @STARTif and044B:   actor $PLAYER_ACTOR on_foot$ONMISSION == 0jf @STARTif and0AB0:  key_pressed 71//---G0AB0:  key_pressed 82//--Rjf @STARTModel.Load(#FAM1)    Model.Load(#FAM2)  Model.Load(#FAM3)  :SELECTwait 0if andModel.Available(#FAM1)Model.Available(#FAM2)Model.Available(#FAM3)jf @SELECT023C: load_special_actor 'RYDER' as 1 // models 290-299023C: load_special_actor 'RYDER3' as 2 // models 290-299    023C: load_special_actor 'SWEET' as 3 // models 290-299      023C: load_special_actor 'SMOKE' as 4 // models 290-299    023C: load_special_actor 'JANITOR' as 5 // models 290-299:load_check_1wait 0 if or823D:   not special_actor 1 loaded 823D:   not special_actor 2 loaded 823D:   not special_actor 3 loaded 823D:   not special_actor 4 loaded 823D:   not special_actor 5 loaded jf @load_check_2 023C: load_special_actor 'RYDER' as 1 // models 290-299023C: load_special_actor 'RYDER3' as 2 // models 290-299    023C: load_special_actor 'SWEET' as 3 // models 290-299      023C: load_special_actor 'SMOKE' as 4 // models 290-299    023C: load_special_actor 'JANITOR' as 5 // models 290-299 jump @load_check_1 :load_check_2023C: load_special_actor 'CESAR' as 6 // models 290-299      023C: load_special_actor 'BB' as 7 // models 290-299    023C: load_special_actor 'SMOKEV' as 8 // models 290-299    023C: load_special_actor 'EMMET' as 9 // models 290-299  :load_check_3wait 0 if or823D:   not special_actor 6 loaded 823D:   not special_actor 7 loaded 823D:   not special_actor 8 loaded 823D:   not special_actor 9 loaded jf @Spawn 023C: load_special_actor 'CESAR' as 6 // models 290-299      023C: load_special_actor 'BB' as 7 // models 290-299    023C: load_special_actor 'SMOKEV' as 8 // models 290-299    023C: load_special_actor 'EMMET' as 9 // models 290-299 jump @load_check_3 :Spawn04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset -10.0  4.0  0.2009A: [email protected] = create_actor_pedtype 8 model #FAM1 at [email protected] [email protected] [email protected]: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0  4.0  0.2009A: [email protected] = create_actor_pedtype 8 model #FAM2 at [email protected] [email protected] [email protected]: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset -2.5  4.0  0.2009A: [email protected] = create_actor_pedtype 8 model #FAM3 at [email protected] [email protected] [email protected]: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset -5.0  4.0  0.2009A: [email protected] = create_actor_pedtype 3 model #SPECIAL01 at [email protected] [email protected] [email protected]: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset -5.0  8.0  0.2009A: [email protected] = create_actor_pedtype 24 model #SPECIAL02 at [email protected] [email protected] [email protected]: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset -2.5  8.0  0.2009A: [email protected] = create_actor_pedtype 24 model 293 at [email protected] [email protected] [email protected]: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0  8.0  [email protected] = Actor.Create(24, 294, [email protected], [email protected], [email protected])04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 2.5  8.0  [email protected] = Actor.Create(Mission1, 295, [email protected], [email protected], [email protected])04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 5.0  8.0  [email protected] = Actor.Create(Mission1, 296, [email protected], [email protected], [email protected])04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 2.5  4.0  [email protected] = Actor.Create(Mission1, 297, [email protected], [email protected], [email protected])04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 5.0  4.0  [email protected] = Actor.Create(Mission1, 298, [email protected], [email protected], [email protected])04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 5.0  12.0  [email protected] = Actor.Create(Mission1, #SPECIAL09, [email protected], [email protected], [email protected])04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.0 2.000BC: show_text_highpriority GXT 'GANGSPW1' time 1500 flag 1wait 55000A93: end_custom_thread

 

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.