Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code error
#1
Code:
Private Sub Command1_Click()
frmadminpannel.Show
End Sub

Private Sub Form_Load()
    frmMirage.Width = 10080
    If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then
    Command1.Enabled = True
    End If
End Sub

this is what I changed

the error i got was "RTE 9 subscript out of range" and the following function highlighted

Code:
Function GetPlayerAccess(ByVal Index As Long) As Long
    GetPlayerAccess = Player(Index).Access
End Function

any ideas?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)