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

    1. GTANet.com

    1. GTA Online

      1. The Diamond Casino Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA 6

      1. St Andrews Cathedral
    3. GTA V

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

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    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. DYOM
      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
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Sign in to follow this  
Maro Hannover

Jump Between Threads

Recommended Posts

Maro Hannover

Is there anyway to Jump from Class to Class , Void to Void. These was possible in GTA SA like this

:MODEL_LOADLoad_Model #COPCARLAload_requested_models:MODEL_CHECKif Model #COPCARLA availablejump_if_false @MODEL_LOADelse jump @MODEL_SPAWN:MODEL_SPAWNCar.Create(" XXX , XXX , XXX")

iF You don't understand here is an example

I Have to Public classes. Public Void and Public sh*t. If the Player Die then it jump out of class Public Void and go to Public sh*t.

Share this post


Link to post
Share on other sites
LordOfTheBongs

whatever language ur programming in u should take a beginners tutorial and actually learn the language... when u understand programming then u know the answer to this question is yes. Any objects u need to access from anywhere u make public.

Share this post


Link to post
Share on other sites
Jitnaught

Is there anyway to Jump from Class to Class , Void to Void. These was possible in GTA SA like this

:MODEL_LOADLoad_Model #COPCARLAload_requested_models:MODEL_CHECKif Model #COPCARLA availablejump_if_false @MODEL_LOADelse jump @MODEL_SPAWN:MODEL_SPAWNCar.Create(" XXX , XXX , XXX")

iF You don't understand here is an example

I Have to Public classes. Public Void and Public sh*t. If the Player Die then it jump out of class Public Void and go to Public sh*t.

 

Just call the function...

So, in your code, you have two functions (I'm guessing it's two functions, as you said public void and public sh*t. I don't know if public sh*t is a void or if it's a custom class).

public void testFunction(){}//Andpublic void sh*t(){}

To call the sh*t function from testFunction, just do this.

sh*t();

And the other way around...

testFunction();

If it is a custom class, it would be the same thing.

 

But yeah, as Infamous said... this is pretty basic stuff. Not to be mean or anything, but you should be googling this stuff before you post here.

Edited by LetsPlayOrDy

Share this post


Link to post
Share on other sites
Maro Hannover

You are a really smart Guy Letsplayordy , i am serious (No Sarcasm).

But i don't understand what are you saying. calling testfunction from sh*t. Can you explain a bit please. I think i am not clear about my explaination. Let me explain what i want clearly. There are two classes public void funtion and Loader.

Now the game is reading. Public void Funtion is the first and the second is Public Void Loader. The game is reading now at Public Void Loader and there is a code

if(Player.Character.IsDead){ // What i want to happen}

If the player is dead i want the to read back to Public void Function.

 

Sorry for making you tired.

 

In the Main.sco i found something like this

:STARTUP809if <UVI341> = 3380Jump_If_False @STARTUP809

The Same like GTA San Andreas and the 3D era

Edited by Maro Hannover

Share this post


Link to post
Share on other sites
Maro Hannover

LOL did you Play San Andreas.

Ok sorry but i did not understand how to stand. Just Kidding

DO you mean i can make this only with Case? because in case i cannot make any KeyeventHandler , GXTeventHandler and such things

if(InfamousSabre.isDead){ goto case Bong:}case Bong:infamousSabre.Health = 100

this is what i mean i want to make it in Voids

Edited by Maro Hannover

Share this post


Link to post
Share on other sites
LordOfTheBongs

maro put down the crack pipe and slowly back away

 

u make all scriptboys a dissapoint

 

kobasfhgx7-t.jpg

Edited by LordOfTheBongs
  • Like 1

Share this post


Link to post
Share on other sites
hornedturtle

I know f*ck all about codding but in your first post the code was overdone.

 

the rest of the examples don't have anything to start them unless you just didn't post it.

 

if(Player.Character.Dies)

{

rest of stuff

}

 

in other words you need to use an event/action in game that it can recognize for the script to run. otherwise it will just run threw it once at startup and that's it.

 

(please correct me if I'm wrong, last time I did this sort of stuff was 4 years ago with wc3)

Share this post


Link to post
Share on other sites
Maro Hannover

I am not new this game. because what are you saying makes no sense. This is Coding not Posting Ok and it is Player.Character.IsDead not Player.Character.Dies there is no Such Parameter

Share this post


Link to post
Share on other sites
Silent

You could start by taking up some practice outside of GTA coding as you seem to be asking either about C++ or C# scripthooks. There is a SCO compiler available too, but I don't recall any tutorials out there.

 

Oh, and your writing style is awful. I can't make any sense of what you're saying.

  • Like 1

Share this post


Link to post
Share on other sites
Wiebrendh
I Have to Public classes. Public Void and Public sh*t. If the Player Die then it jump out of class Public Void and go to Public sh*t.

 

 

This is the probably the weirdest sentence i have ever read.. Please go and learn proper english (And C#)

Share this post


Link to post
Share on other sites
LordOfTheBongs

 

I Have to Public classes. Public Void and Public sh*t. If the Player Die then it jump out of class Public Void and go to Public sh*t.

 

 

This is the probably the weirdest sentence i have ever read.. Please go and learn proper english (And C#)

 

seriously maro go learn english, c# etc before u post here

 

everything u say is gibberish

Edited by LordOfTheBongs
  • Like 1

Share this post


Link to post
Share on other sites
Maro Hannover

I am not Gibberish.

I study in english school too. I think maybe you don't understand english or maybe i am talking c# not english :lol:.

The More Important thing that i still did not get my answer and today i had just logined and found that i became A SPECIAL MEMBER :D.

I am not Forcing you to answer me i am just asking.

Edited by Maro Hannover

Share this post


Link to post
Share on other sites
LordOfTheBongs

u make no sense and that is why u are "special"

 

u dont know english and u dont know c#

 

bye

  • Like 2

Share this post


Link to post
Share on other sites
Jitnaught

u make no sense and that is why u are "special"

 

u dont know english and u dont know c#

 

bye

 

@Maro Hannover These are facts, not opinions.

  • Like 3

Share this post


Link to post
Share on other sites
Rugz007

But Dont Be disappointed man just believe in yourself

Share this post


Link to post
Share on other sites
Maro Hannover

But i study in english school. You call me gibbirish for that?after 10 years of playing gta i get this answercry.png

Edited by Maro Hannover
  • Like 1

Share this post


Link to post
Share on other sites
Rugz007

Yeah i think ;)

Share this post


Link to post
Share on other sites
Maro Hannover

Ok i will try not to be GIBBERISH as this is not our topic. Our topic is THIS!

 

Jump Between Threads.

Can someone respect my wishes for Once!

Edited by Maro Hannover

Share this post


Link to post
Share on other sites
Rugz007

LOL did you Play San Andreas.

Ok sorry but i did not understand how to stand. Just Kidding

DO you mean i can make this only with Case? because in case i cannot make any KeyeventHandler , GXTeventHandler and such things

if(InfamousSabre.isDead){ goto case Bong:}case Bong:infamousSabre.Health = 100

this is what i mean i want to make it in Voids

ohh Wait let me make the code for ya ;)

Share this post


Link to post
Share on other sites
AgentWD40

oh you mean like this

Ped InfamouseSabre;if(InfamousSabre.isDead){ goto Bong;}Bong:InfamousSabre.Health = 100;return InfamouseSabre;
Edited by hardsty1e

Share this post


Link to post
Share on other sites
LordOfTheBongs

Ok i will try not to be GIBBERISH as this is not our topic. Our topic is THIS!

 

Jump Between Threads.

Can someone respect my wishes for Once!

gta scripts run on a single thread so u dont need to do this

 

or is that not what u mean??

 

english-mother-fucker-do-you-speak-it.jp

  • Like 1

Share this post


Link to post
Share on other sites
Silent

Ok i will try not to be GIBBERISH as this is not our topic. Our topic is THIS!

Jump Between Threads.

Can someone respect my wishes for Once!

 

Your question makes no sense. That's why everyone's nuts.

 

Again, I'd advice taking up some C# practice first.

  • Like 2

Share this post


Link to post
Share on other sites
Wiebrendh

 

Ok i will try not to be GIBBERISH as this is not our topic. Our topic is THIS!

Jump Between Threads.

Can someone respect my wishes for Once!

 

Your question makes no sense. That's why everyone's nuts.

 

Again, I'd advice taking up some C# practice first.

 

 

We tried to give him that advice before..

Share this post


Link to post
Share on other sites
Maro Hannover

@Weidbrenh Yes i practice C# more than you expect me and i respect you so much but i don't know why you hate me.

 

@Silent

RbjmjYy.png

Edited by Maro Hannover

Share this post


Link to post
Share on other sites
Rugz007

Lol Mari respect him

Share this post


Link to post
Share on other sites
Silent

@Silent

RbjmjYy.png

Want to see a magic trick?

 

Such a question indicates you don't know C#. And now the magic.

 

 

 

Tadaaa!

 

 

Go back when you know the language enough to be able to ask a correct question.

  • Like 2

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

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