Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RTE '9' Subscript out of range
#1
Well ive added the Visual Inv. tutorial by GSD, viewtopic.php?f=75&t=342, and now when I attempt to open the inventory, I get RTE '9' Subscript out of range. The bold red below is the line directed at;

Quote:Function GetPlayerInvItemNum(ByVal Index As Long, ByVal InvSlot As Long) As Long
GetPlayerInvItemNum = Player(Index).Inv(InvSlot).Num
End Function

When I hover the mouse over it I get;
[Image: errorrc6.png]

Any Ideas?
Reply
#2
Dave Wrote:Verify the InvSlot number is within range.

Err, I dont understand. Care to Explaine?

Please?!
Reply
#3
Allright. Thanks.
Waiting...
Reply
#4
Just set the MAX_INV to however many inventory slots you have.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)