IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 I Cant Trigger Mission

 
shrode  
Posted: Tuesday, Feb 14 2012, 23:04
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Dec 21, 2011

XXXXX



i defined my mission

[CODE]
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



[CODE]
:NONAME_77
0001: 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_83
0002: jump @NONAME_77



Then i created my mission at the uber very bottom of main.scm




[CODE]
//-------------Mission 80---------------

:MEME
03A4: name_thread 'MEME'
0050: gosub @MEME_46
00D6: if
0112: wasted_or_busted
004D: jump_if_false @MEME_37
0050: gosub @MEME_66

:MEME_37
0050: gosub @MEME_68
004E: end_thread

:MEME_46
009A: $TONI4_MAFIA2 = create_actor 7 #GANG01 at 1215.875 -311.1875 29.0
0051: return

:MEME_66
0051: return

:MEME_68
0004: $ONMISSION = 0 // integer values
00D8: mission_cleanup
0051: return




My problem is when i standing at the
0213: $MYPICKUP = create_pickup #KILLFRENZY rampage_ani.gif type 3 at 812.0 -945.5 35.75

nothing happens confused.gif

This post has been edited by shrode on Tuesday, Feb 14 2012, 23:09
PM
  Top
 

 
Deji  
Posted: Wednesday, Feb 15 2012, 00:12
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



CODE
:NONAME_77
0001: 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_83
0002: jump @NONAME_77


Lets just take a look at this in a more readable way...

CODE
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
   end
end


So, not only do you treat the CREATE_PICKUP command as a condition, but you also run it in an infinite loop. Try this:

CODE
0213: $MYPICKUP = create_pickup #KILLFRENZY type 3 at 812.0 -945.5 35.75

while 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
   end
end
Users WebsitePM
  Top
 

 
shrode  
Posted: Wednesday, Feb 15 2012, 01:40
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Dec 21, 2011

XXXXX



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!
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG