Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Subscript out of range in Sub ClearPlayer, Server Side
#1
Code:
Sub ClearPlayer(ByVal Index As Long)
Dim i As Long
Dim n As Long

    Player(Index).Login = vbNullString

The player.login gives me a subscript out of range, when initilizing the player array. It tells me i = 1 and index = 1.

Not sure what's going on.
Reply
#2
Make sure you didnt run it with a for loop = 0.
Reply
#3
Hah, thanks. =D

But I fixed it already, I don't recall how though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)