Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RTE 9: Subscript out of Range
#2
Change i = 1 to i = 0 and

While FileExist(GFX_PATH & "sprites\" & i & GFX_EXT)

To

While FileExist(GFX_PATH & "sprites\" & i + 1 & GFX_EXT)

Then make a check like:

Code:
If i < 1 Then
    MsgBox "You are missing sprite files!"
    GameDestroy
End If
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)