shrode Posted February 14, 2012 Share Posted February 14, 2012 (edited) i defined my mission DEFINE MISSIONS 81 DEFINE MISSION 0 AT @INTRO // Intro Movie DEFINE MISSION 1 AT @HEALTH // Hospital Info Scene DEFINE MISSION 2 AT @WANTED // Police Station Info Scene DEFINE MISSION 3 AT @RC1 // RC Diablo Destruction DEFINE MISSION 4 AT @RC2 // RC Mafia Massacre DEFINE MISSION 5 AT @RC3 // RC Rumpo Rampage DEFINE MISSION 6 AT @RC4 // RC Casino Calamity DEFINE MISSION 7 AT @T4X4_1 // Patriot Playground DEFINE MISSION 8 AT @T4X4_2 // A Ride In The Park DEFINE MISSION 9 AT @T4X4_3 // Gripped! DEFINE MISSION 10 AT @MAYHEM // Multistorey Mayhem DEFINE MISSION 11 AT @AMBULAN // Paramedic DEFINE MISSION 12 AT @FIRETRU // Firefighter DEFINE MISSION 13 AT @COPCAR // Vigilante DEFINE MISSION 14 AT @TAXI // Taxi Driver DEFINE MISSION 15 AT @MEAT1 // The Crook DEFINE MISSION 16 AT @MEAT2 // The Thieves DEFINE MISSION 17 AT @MEAT3 // The Wife DEFINE MISSION 18 AT @MEAT4 // Her Lover DEFINE MISSION 19 AT @EIGHT // Give Me Liberty and Luigi's Girls DEFINE MISSION 20 AT @LUIGI2 // Don't Spank My Bitch Up DEFINE MISSION 21 AT @LUIGI3 // Drive Misty For Me DEFINE MISSION 22 AT @LUIGI4 // Pump-Action Pimp DEFINE MISSION 23 AT @LUIGI5 // The Fuzz Ball DEFINE MISSION 24 AT @JOEY1 // Mike Lips Last Lunch DEFINE MISSION 25 AT @JOEY2 // Farewell 'Chunky' Lee Chong DEFINE MISSION 26 AT @JOEY3 // Van Heist DEFINE MISSION 27 AT @JOEY4 // Cipriani's Chauffeur DEFINE MISSION 28 AT @JOEY5 // Dead Skunk In The Trunk DEFINE MISSION 29 AT @JOEY6 // The Getaway DEFINE MISSION 30 AT @TONI1 // Taking Out The Laundry DEFINE MISSION 31 AT @TONI2 // The Pick-Up DEFINE MISSION 32 AT @TONI3 // Salvatore's Called A Meeting DEFINE MISSION 33 AT @TONI4 // Triads And Tribulations DEFINE MISSION 34 AT @TONI5 // Blow Fish DEFINE MISSION 35 AT @FRANK1 // Chaperone DEFINE MISSION 36 AT @FRANK2 // Cutting The Grass DEFINE MISSION 37 AT @FRANK21 // Bomb Da Base: Act I DEFINE MISSION 38 AT @FRANK3 // Bomb Da Base: Act II DEFINE MISSION 39 AT @FRANK4 // Last Requests DEFINE MISSION 40 AT @DIABLO1 // Turismo DEFINE MISSION 41 AT @DIABLO2 // I Scream, You Scream DEFINE MISSION 42 AT @DIABLO3 // Trial By Fire DEFINE MISSION 43 AT @DIABLO4 // Big'N'Veiny DEFINE MISSION 44 AT @ASUKA1 // Sayonara Salvatore DEFINE MISSION 45 AT @ASUKA2 // Under Surveillance DEFINE MISSION 46 AT @ASUKA3 // Paparazzi Purge DEFINE MISSION 47 AT @ASUKA4 // Payday For Ray DEFINE MISSION 48 AT @ASUKA5 // Two-Faced Tanner DEFINE MISSION 49 AT @KENJI1 // Kanbu Bust-Out DEFINE MISSION 50 AT @KENJI2 // Grand Theft Auto DEFINE MISSION 51 AT @KENJI3 // Deal Steal DEFINE MISSION 52 AT @KENJI4 // Shima DEFINE MISSION 53 AT @KENJI5 // Smack Down DEFINE MISSION 54 AT @RAY1 // Silence The Sneak DEFINE MISSION 55 AT @RAY2 // Arms Shortage DEFINE MISSION 56 AT @RAY3 // Evidence Dash DEFINE MISSION 57 AT @RAY4 // Gone Fishing DEFINE MISSION 58 AT @RAY5 // Plaster Blaster DEFINE MISSION 59 AT @RAY6 // Marked Man DEFINE MISSION 60 AT @LOVE1 // Liberator DEFINE MISSION 61 AT @LOVE2 // Waka-Gashira Wipeout! DEFINE MISSION 62 AT @LOVE3 // A Drop In The Ocean DEFINE MISSION 63 AT @YARD1 // Bling-Bling Scramble DEFINE MISSION 64 AT @YARD2 // Uzi Rider DEFINE MISSION 65 AT @YARD3 // Gangcar Round-Up DEFINE MISSION 66 AT @YARD4 // Kingdom Come DEFINE MISSION 67 AT @LOVE4 // Grand Theft Aero DEFINE MISSION 68 AT @LOVE5 // Escort Service DEFINE MISSION 69 AT @LOVE6 // Decoy DEFINE MISSION 70 AT @LOVE7 // Love's Disappearance DEFINE MISSION 71 AT @ASUSB1 // Bait DEFINE MISSION 72 AT @ASUSB2 // Espresso-2-Go! DEFINE MISSION 73 AT @ASUSB3 // S.A.M. DEFINE MISSION 74 AT @HOOD1 // Uzi Money DEFINE MISSION 75 AT @HOOD2 // Toyminator DEFINE MISSION 76 AT @HOOD3 // Rigged To Blow DEFINE MISSION 77 AT @HOOD4 // Bullion Run DEFINE MISSION 78 AT @HOOD5 // Rumble DEFINE MISSION 79 AT @CAT1 // The Exchange DEFINE MISSION 80 AT @MEME And then created a thread :NONAME_770001: wait 0 ms 00D6: if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @NONAME_77_83 00D6: if 0038: $ONMISSION == 0 // integer values 004D: jump_if_false @NONAME_77_83 00D6: if 0213: $MYPICKUP = create_pickup #KILLFRENZY type 3 at 812.0 -945.5 35.75 0214: pickup $MYPICKUP picked_up 004D: jump_if_false @NONAME_77_83 0417: start_mission 80 0004: $ONMISSION = 1 // integer values :NONAME_77_830002: jump @NONAME_77 Then i created my mission at the uber very bottom of main.scm [code=auto:0]//-------------Mission 80--------------- :MEME03A4: name_thread 'MEME' 0050: gosub @MEME_46 00D6: if 0112: wasted_or_busted 004D: jump_if_false @MEME_37 0050: gosub @MEME_66 :MEME_370050: gosub @MEME_68 004E: end_thread :MEME_46009A: $TONI4_MAFIA2 = create_actor 7 #GANG01 at 1215.875 -311.1875 29.0 0051: return :MEME_660051: return :MEME_680004: $ONMISSION = 0 // integer values 00D8: mission_cleanup 0051: return My problem is when i standing at the 0213: $MYPICKUP = create_pickup #KILLFRENZY type 3 at 812.0 -945.5 35.75 nothing happens Edited February 14, 2012 by shrode Link to comment Share on other sites More sharing options...
Deji Posted February 15, 2012 Share Posted February 15, 2012 :NONAME_770001: wait 0 ms00D6: if0256: player $PLAYER_CHAR defined004D: jump_if_false @NONAME_77_8300D6: if0038: $ONMISSION == 0 // integer values004D: jump_if_false @NONAME_77_8300D6: if0213: $MYPICKUP = create_pickup #KILLFRENZY type 3 at 812.0 -945.5 35.750214: pickup $MYPICKUP picked_up004D: jump_if_false @NONAME_77_830417: start_mission 800004: $ONMISSION = 1 // integer values:NONAME_77_830002: jump @NONAME_77 Lets just take a look at this in a more readable way... while true wait 0 if 0256: player $PLAYER_CHAR defined then if $ONMISSION == 0 // integer values then if 0213: $MYPICKUP = create_pickup #KILLFRENZY type 3 at 812.0 -945.5 35.75 0214: pickup $MYPICKUP picked_up then 0417: start_mission 80 $ONMISSION = 1 // integer values end end endend So, not only do you treat the CREATE_PICKUP command as a condition, but you also run it in an infinite loop. Try this: 0213: $MYPICKUP = create_pickup #KILLFRENZY type 3 at 812.0 -945.5 35.75while true wait 0 if 0256: player $PLAYER_CHAR defined then if $ONMISSION == 0 // integer values then if 0214: pickup $MYPICKUP picked_up then 0417: start_mission 80 $ONMISSION = 1 004E: end_thread // we can finish, now end end endend Link to comment Share on other sites More sharing options...
shrode Posted February 15, 2012 Author Share Posted February 15, 2012 Sorry if i were a noob when it comes to something like this.. im a lil bit new about this coding stuff so anyway.. you'd just made my day baby! you fixed my problem like a boss,,thanks a lot buddy! 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