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

Shields in latest version of EA


jaekx
 Share

Recommended Posts

Whenever I attack a monster with a shield equipped I get a runtime 9 error and my server shuts down, any ideas?

debug brings me to the starred off section of this code

```

Public Function GetPlayerStat(ByVal index As Long, ByVal stat As Stats) As Long

Dim x As Long, i As Long

If index > MAX_PLAYERS Then Exit Function

* x = Player(index).stat(stat)*

For i = 1 To Equipment.Equipment_Count - 1

If Player(index).Equipment(i) > 0 Then

If Item(Player(index).Equipment(i)).Add_Stat(stat) > 0 Then

x = x + Item(Player(index).Equipment(i)).Add_Stat(stat)

End If

End If

Next

GetPlayerStat = x

End Function

```

Edit: if it helps any I discovered that if I kill the enemy in 1 shot it doesn't give me the error, its when it takes multiple shots.

3.0.21

edit: it is absolutely just shields, i havent had this problem with anything else equipped.
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...