I keep getting subscript out of range with this line of code:

If GetPlayerEquipment(Index, Helmet) > 0 Then

Anyone know why?