Quantcast

Jump to content

» «
Photo

VC Object Array Crash

7 replies to this topic
NRockhouse
  • NRockhouse

    Player Hater

  • Members
  • Joined: 31 Dec 2012

#1

Posted 25 August 2013 - 10:04 AM Edited by NRockhouse, 25 August 2013 - 10:23 AM.

Hi all this is the first time I post something on the GTAForums. If I posted on the wrong place please tell me. I tried to create objects with Object.Init and Object.Create with array but it both of them crashes. Can anyone help me to solve the problem and tell me what is the difference between Object.Init and Object.Create?

Btw, here's part of the script:
CODE

:DECLARE
30@ = 0
:CREATE
if
30 > 30@
jf @ENDTHREAD
3@ = 1
Object.Init($MYRAMPOBJECT[30@], 7@, 0@, 1@, 2@)
Object.KeepInMemory($MYRAMPOBJECT[30@], false)
0170: 4@ = player $PLAYER_CHAR z_angle
0177: set_object $MYRAMPOBJECT[30@] z_angle_to 4@
000A: 30@ += 1 // integer values
jump @CREATE


***sorry for bad English*** smile.gif

gta3masta5000
  • gta3masta5000

    Boredom.... All the time...

  • Members
  • Joined: 28 Apr 2012
  • United-States

#2

Posted 25 August 2013 - 10:30 AM

Welcome semi-newbie! (Everybody new IMO is a semi-newbie). Anyway, I cannot help as I do not script for VC, but a warm welcome! Hopefully someone helpful will come along soon...

NRockhouse
  • NRockhouse

    Player Hater

  • Members
  • Joined: 31 Dec 2012

#3

Posted 25 August 2013 - 10:36 AM

oh thanks biggrin.gif I appreciate that

gta3masta5000
  • gta3masta5000

    Boredom.... All the time...

  • Members
  • Joined: 28 Apr 2012
  • United-States

#4

Posted 25 August 2013 - 10:54 AM

QUOTE (NRockhouse @ Sunday, Aug 25 2013, 10:36)
oh thanks biggrin.gif I appreciate that

Haha! NP. Part of the reason I stayed up all night biggrin.gif

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009

#5

Posted 25 August 2013 - 10:56 AM

1.
CODE
30@ = 0

GTA III, GTA VC has local variables from 0@ to 15@. 16@ is TIMERA and 17@ is TIMERB.
You're overwriting important running script informations by this overflow.

2. Please use local variables, do not overwrite global variables. They are reserved to contain storyline values. Global variables are stored in saved game.

3. Arrays don't exist in GTA VC. They were introduced with GTA SA.
Sanny Builder does not verify if arrays exist and compiles a code, but that code can't be executed properly.

NRockhouse
  • NRockhouse

    Player Hater

  • Members
  • Joined: 31 Dec 2012

#6

Posted 25 August 2013 - 03:12 PM

oh... so is there anyway I can make something similar like this ? Actually I edited the script I posted a little to prevent my real plan leaked xxD I'm actually wanted to make a GTA VC Live Map Editor. So the player can choose the Object ID to move, rotate etc. But instead of array, are there any other ways I can do something similar ? And what's the difference between Object.Init and Object.Create ?

NRockhouse
  • NRockhouse

    Player Hater

  • Members
  • Joined: 31 Dec 2012

#7

Posted 27 August 2013 - 04:18 AM

HELLO ? suicidal.gif Anybody ?

Silent
  • Silent

    Moderating Cookie Monster

  • Members
  • Joined: 01 Feb 2010
  • Poland

#8

Posted 27 August 2013 - 11:55 AM

QUOTE (NRockhouse @ Sunday, Aug 25 2013, 17:12)
And what's the difference between Object.Init and Object.Create ?

Check this out:

CREATE_OBJECT
CREATE_OBJECT_NO_OFFSET




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users