13-04-2007, 08:19 PM
I get a Runtime Error 9 Subscript out of Range on these lines right when the client is loading, does anybody know why? I can't seem to pinpoint it. The tricky thing is is that it only happens like, 1 in every 50 times I load the client :p.
It highlights GetPlayerInvItemNum = Player ect. ect.
Code:
Function GetPlayerInvItemNum(ByVal Index As Long, ByVal InvSlot As Long) As Long
GetPlayerInvItemNum = Player(Index).Inv(InvSlot).Num
End Function
It highlights GetPlayerInvItemNum = Player ect. ect.