Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EA]'Subscript out of range 9'-Error with projectiles.


szkat123
 Share

Recommended Posts

Hello.

Last time i added to my game a wand, with projectile.

When the monster is walking, and i kill him durning this, it shows error 'Subscript out of range 9'.

Could someone help me with this?

I'm not good in VB6 :/

P.S. Sorry for my English. I'm from Poland.

P.S.#2 I'm using Eclipse Advanced with no other modifications.
Link to comment
Share on other sites

Alright good! Now, hover over each value in that yellow line. Find which one is causing the RTE 9.

In case you need help finding the values, I put them in bold and underlined them.

TempMapNpc(**MapNpcNum**).**Offse**t = TempMapNpc(**MapNpcNum**).**yOffset** - ((**ElapsedTime** / 1000) * (Npc(MapNpc(**MapNpcNum**).**num**).**speed** * SIZE_X)
Link to comment
Share on other sites

I already fixed that.

Under```
If Option.debug
```

add this:```

If MapNpcNum = 0 then exit sub

If MapNpc(MapNpcNum).num = 0 then exit sub

```

@Tanks to Deathbeam ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)
Link to comment
Share on other sites

  • 7 months later...

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

×
×
  • Create New...