| Mirage Source http://web.miragesource.net/forums/ |
|
| RTE '9' Subscript out of range http://web.miragesource.net/forums/viewtopic.php?f=201&t=3072 |
Page 1 of 1 |
| Author: | wisefire [ Thu Nov 22, 2007 2:29 am ] |
| Post subject: | RTE '9' Subscript out of range |
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; ![]() Any Ideas? |
|
| Author: | Lea [ Thu Nov 22, 2007 2:34 am ] |
| Post subject: | Re: RTE '9' Subscript out of range |
Verify the InvSlot number is within range. |
|
| Author: | wisefire [ Thu Nov 22, 2007 3:44 am ] |
| Post subject: | Re: RTE '9' Subscript out of range |
Dave wrote: Verify the InvSlot number is within range. Err, I dont understand. Care to Explaine? Please?! |
|
| Author: | Lea [ Thu Nov 22, 2007 4:22 am ] |
| Post subject: | Re: RTE '9' Subscript out of range |
well, I believe there is a constant "MAX_INV" that is set to 50. That MAX_INV variable is used to determine how many inventory slots each player has. If you try to check a slot higher than 50 it would give that error. I believe this problem was posted with this tutorial before... but I am not familiar with it. I bet Robin will help when he sees the thread. |
|
| Author: | wisefire [ Thu Nov 22, 2007 5:17 am ] |
| Post subject: | Re: RTE '9' Subscript out of range |
Allright. Thanks. Waiting... |
|
| Author: | Beres [ Sat Dec 01, 2007 8:35 am ] |
| Post subject: | Re: RTE '9' Subscript out of range |
Just set the MAX_INV to however many inventory slots you have. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|