jaekx Posted March 8, 2013 Author Share Posted March 8, 2013 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 LongDim x As Long, i As LongIf 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 IfNextGetPlayerStat = xEnd 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.21edit: it is absolutely just shields, i havent had this problem with anything else equipped. Link to comment Share on other sites More sharing options...
Smasher Yoshi Posted March 8, 2013 Share Posted March 8, 2013 Could someone please delete this post made by mistake? Link to comment Share on other sites More sharing options...
abhi2011 Posted March 9, 2013 Share Posted March 9, 2013 Hover over each variable. A tooltip is shown, with the value of the variable. The variable with the following value tell what it is. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now