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. Forum Support

    3. Suggestions

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


Diegoti
 Share

Recommended Posts

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?

 

Link to comment
Share on other sites

Another GTA Fan

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
Link to comment
Share on other sites

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
Link to comment
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.

Link to comment
Share on other sites

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.

Link to comment
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.

Link to comment
Share on other sites

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?

  • Like 3
Link to comment
Share on other sites

Another GTA Fan

@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.

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.