Quantcast

Jump to content

» «
Photo

Jump Between Threads

  • This topic is locked This topic is locked
25 replies to this topic
Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#1

Posted 13 June 2014 - 07:14 PM

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

:MODEL_LOAD
Load_Model #COPCARLA
load_requested_models

:MODEL_CHECK
if 
Model #COPCARLA available
jump_if_false @MODEL_LOAD
else jump @MODEL_SPAWN

:MODEL_SPAWN
Car.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.


LordOfTheBongs
  • LordOfTheBongs

    Deceased

  • Members
  • Joined: 21 Sep 2013
  • None

#2

Posted 13 June 2014 - 07:27 PM

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.


Jitnaught
  • Jitnaught

    ✰✰✰✰✰✰

  • Members
  • Joined: 24 Aug 2013
  • United-States

#3

Posted 13 June 2014 - 07:42 PM Edited by LetsPlayOrDy, 13 June 2014 - 07:47 PM.

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

:MODEL_LOAD
Load_Model #COPCARLA
load_requested_models

:MODEL_CHECK
if 
Model #COPCARLA available
jump_if_false @MODEL_LOAD
else jump @MODEL_SPAWN

:MODEL_SPAWN
Car.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()
{

}

//And

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


Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#4

Posted 13 June 2014 - 08:06 PM Edited by Maro Hannover, 13 June 2014 - 08:09 PM.

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

:STARTUP809
if <UVI341> = 3380
Jump_If_False @STARTUP809

The Same like GTA San Andreas and the 3D era


Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#5

Posted 14 June 2014 - 08:02 AM Edited by Maro Hannover, 14 June 2014 - 08:06 AM.

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


LordOfTheBongs
  • LordOfTheBongs

    Deceased

  • Members
  • Joined: 21 Sep 2013
  • None

#6

Posted 14 June 2014 - 08:53 AM Edited by LordOfTheBongs, 14 June 2014 - 08:55 AM.

maro put down the crack pipe and slowly back away

 

u make all scriptboys a dissapoint

 

kobasfhgx7-t.jpg

  • stef538 likes this

hornedturtle
  • hornedturtle

    Big Homie

  • Members
  • Joined: 28 Dec 2013
  • None

#7

Posted 14 June 2014 - 09:15 AM

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)

Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#8

Posted 14 June 2014 - 09:31 AM

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


Silent
  • Silent

    Chief Vision™ Alterer

  • GTA Mods Staff
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [Modding] 2016
    Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#9

Posted 14 June 2014 - 02:20 PM

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.
  • Wiebrendh likes this

Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#10

Posted 14 June 2014 - 07:37 PM

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#)


LordOfTheBongs
  • LordOfTheBongs

    Deceased

  • Members
  • Joined: 21 Sep 2013
  • None

#11

Posted 14 June 2014 - 07:40 PM Edited by LordOfTheBongs, 14 June 2014 - 07:40 PM.

 

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

  • Wiebrendh likes this

Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#12

Posted 15 June 2014 - 08:26 PM Edited by Maro Hannover, 15 June 2014 - 08:28 PM.

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.


LordOfTheBongs
  • LordOfTheBongs

    Deceased

  • Members
  • Joined: 21 Sep 2013
  • None

#13

Posted 15 June 2014 - 09:02 PM

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

 

u dont know english and u dont know c#

 

bye

  • stef538 and InfamousSabre like this

Jitnaught
  • Jitnaught

    ✰✰✰✰✰✰

  • Members
  • Joined: 24 Aug 2013
  • United-States

#14

Posted 15 June 2014 - 10:14 PM

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.

  • stef538, InfamousSabre and Wiebrendh like this

Rugz007
  • Rugz007

    A simple guy

  • Members
  • Joined: 19 Apr 2014
  • India

#15

Posted 16 June 2014 - 05:46 AM

But  Dont Be disappointed man just believe in yourself


Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#16

Posted 16 June 2014 - 07:43 AM Edited by Maro Hannover, 16 June 2014 - 07:44 AM.

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

  • LordOfTheBongs likes this

Rugz007
  • Rugz007

    A simple guy

  • Members
  • Joined: 19 Apr 2014
  • India

#17

Posted 16 June 2014 - 07:44 AM

Yeah i think ;) 


Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#18

Posted 16 June 2014 - 07:47 AM Edited by Maro Hannover, 16 June 2014 - 07:48 AM.

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!


Rugz007
  • Rugz007

    A simple guy

  • Members
  • Joined: 19 Apr 2014
  • India

#19

Posted 16 June 2014 - 07:57 AM

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 ;) 


AgentWD40
  • AgentWD40

    GLITCHED

  • Members
  • Joined: 02 May 2009
  • Philippines

#20

Posted 16 June 2014 - 11:10 AM Edited by hardsty1e, 16 June 2014 - 12:18 PM.

oh you mean like this

Ped InfamouseSabre;

if(InfamousSabre.isDead)
{
 goto Bong;
}

Bong:
InfamousSabre.Health = 100;
return InfamouseSabre;

LordOfTheBongs
  • LordOfTheBongs

    Deceased

  • Members
  • Joined: 21 Sep 2013
  • None

#21

Posted 16 June 2014 - 03:24 PM

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-f*cker-do-you-speak-it.jp

  • stef538 likes this

Silent
  • Silent

    Chief Vision™ Alterer

  • GTA Mods Staff
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [Modding] 2016
    Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#22

Posted 16 June 2014 - 04:01 PM

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.
  • Jitnaught and Wiebrendh like this

Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#23

Posted 17 June 2014 - 07:56 AM

 

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


Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#24

Posted 17 June 2014 - 11:29 AM Edited by Maro Hannover, 17 June 2014 - 11:47 AM.

@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


Rugz007
  • Rugz007

    A simple guy

  • Members
  • Joined: 19 Apr 2014
  • India

#25

Posted 17 June 2014 - 11:50 AM

Lol Mari respect him

Silent
  • Silent

    Chief Vision™ Alterer

  • GTA Mods Staff
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [Modding] 2016
    Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#26

Posted 17 June 2014 - 12:31 PM

@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.
  • stef538 and Wiebrendh like this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users