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

[Solved][EA] Subscript out of range


Prince
 Share

Recommended Posts

> Read the code then. Checking if the sum is less than zero doesn't do duck all to fix the problem since the problem is the sum being zero. Think.

Thanks you so much, i just did this:

```

If MapNpc(MapNpcNum).num <= 0 or MapNpc(MapNpcNum).num >= MAX_MAP_NPCS Then Exit Sub

```

Its working now. Thanks you
Link to comment
Share on other sites

> Thanks you so much, i just did this:
>
> ```
>
> If MapNpc(MapNpcNum).num <= 0 or MapNpc(MapNpcNum).num >= MAX_MAP_NPCS Then Exit Sub
>
> ```
>
> Its working now. Thanks you

Glad you got it working. Helps to think about the problem and how to solve it rather than jump right on the forums.
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

×
×
  • Create New...