Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    2. News

    1. Red Dead Redemption 2

      1. News
      2. Red Dead Online
    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

Sign in to follow this  
Diegoti

What mean this -> [email protected]([email protected],1i) ?

Recommended Posts

Diegoti

Example -> [email protected]([email protected],1i) = Car.Create(#POLMAV, [email protected], [email protected], [email protected])

 

What does it means?

:D

 

Extra question:

Spoiler

How does works the "IF -> JF" system, i already know about scm but i also want to know about that

Example

if 
   Player.Defined($PLAYER_CHAR)
jf @example

Can someone give me an example?

 

Share this post


Link to post
Share on other sites
Recommended
Posted (edited)

For the first question, it will create a car under the first variable you choose. The bits in brackets are not needed. You can delete those parts and it'll still work as it should, so it can be written like this: [email protected] = Car.Create (#POLMAV, [email protected], [email protected], [email protected])

 

And if works by checking the condition. So if you put "if" then followed by a condition, then it will check that condition first, and if you add a else_jump after the condition, if that condition is not met, then it'll 'else_jump' to the label you give it. I don't use the jf code, instead I use else_jump which as far as I can tell does the same thing, so I cannot 100% confirm that.

 

As an example:

 

:Label_1

wait 0

if

Actor [email protected] defined

else_jump @Label_1

Actor.SetImmunities([email protected], 1, 1, 1, 1, 1)

jump @Label_2

 

So what the example above will do, is if actor 5 has been defined, the script will skip the else_jump, and the coding after that will trigger. For this example, the actor will become all-proof and the script will jump to Label_2.

 

If the actor doesn't exist in the script, then it will use the else_jump and constantly jump back to Label_1.

 

By the way, you can also add 'and' 'or' with an if. So you can use if and, or if or.

 

They should be self-explanatory, if not:

 

if and will check multiple conditions up to 8 instead of just 1.

 

if or will check if at least one of the follow conditions has been met, so if you have something like:

 

wait 0

if or

actor [email protected] defined

actor [email protected] driving

actor [email protected] dead

 

Only one of those conditions will need ot be met for the script to progress.

Edited by Recommended

Share this post


Link to post
Share on other sites
Diegoti
Posted (edited)

Well, another user already explain me the first question, it is an array.

 

About second question, thank ;) it will help me a lot.

Edited by Diegoti

Share this post


Link to post
Share on other sites
Shadowboy203

This is not a programming-questions site. Its about GTA stuff, I think you have to mention (if it is..) that its a game's script.

 

You can ask tons of programming questions at Stack Overflow.

Share this post


Link to post
Share on other sites
deltaCJ
9 minutes ago, Shadowboy203 said:

This is not a programming-questions site. Its about GTA stuff, I think you have to mention (if it is..) that its a game's script.

 

You can ask tons of programming questions at Stack Overflow.

Ummmm, this is a website for programming.

 

Modding section is for all modding questions.

Share this post


Link to post
Share on other sites
Shadowboy203
1 minute ago, deltaCJ said:

Ummmm, this is a website for programming.

 

Modding section is for all modding questions.

Well I guess its a website for mods and stuff? Not that stuff. And if he's talking 'bout GTA stuff then he's at the right place. I just said its a website for GTA "stuff", and if he's talking 'bout GTA he have to mention it.

Share this post


Link to post
Share on other sites
guard3

He posted a GTA related question in a GTA related site and he has to mention that his question is GTA related? What are you smoking?

Share this post


Link to post
Share on other sites
Recommended

@Shadowboy203 The OP was asking a question relating to Cleo Scripting, which is a huge part in GTA Modding.

 

Judging by your recent replies to other Mod topics, you don't seem to fully know what you're talking about. I don't mean to be rude, but if you have no experience with modding or the issues other members are facing due to modding, it would be best not to post your 'advice'.

 

PS. OP has his question resolved, so probably best to lock the topic.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.