[SM]CJZera Posted February 9, 2009 Share Posted February 9, 2009 (edited) 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 February 9, 2009 by [SM]CJZera Link to comment Share on other sites More sharing options...
_VaNkAtA_ Posted February 9, 2009 Share Posted February 9, 2009 {$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! Note: I've just got up from bed! Link to comment Share on other sites More sharing options...
spaceeinstein Posted February 9, 2009 Share Posted February 9, 2009 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 More sharing options...
[SM]CJZera Posted February 9, 2009 Author Share Posted February 9, 2009 That's the bad thing about modding SA, I'll do it when I get back home again Link to comment Share on other sites More sharing options...
NTAuthority Posted February 9, 2009 Share Posted February 9, 2009 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 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 More sharing options...
[SM]CJZera Posted February 9, 2009 Author Share Posted February 9, 2009 (edited) 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 February 11, 2009 by [SM]CJZera Link to comment Share on other sites More sharing options...
[SM]CJZera Posted February 17, 2009 Author Share Posted February 17, 2009 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 More sharing options...
Wesser Posted February 17, 2009 Share Posted February 17, 2009 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 More sharing options...
james227uk Posted February 17, 2009 Share Posted February 17, 2009 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 More sharing options...
[SM]CJZera Posted February 17, 2009 Author Share Posted February 17, 2009 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 More sharing options...
james227uk Posted February 17, 2009 Share Posted February 17, 2009 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 More sharing options...
ZAZ Posted February 17, 2009 Share Posted February 17, 2009 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 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