Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Having touble setting access!


achap89
 Share

Recommended Posts

Sigh, sorry about the questions I feel like such a freaking newbie.
ok so my code is
```
Private Sub cmdSetAccess_Click()
    If scrlSetAccess.Value > Player(MyIndex).Access Then
        AddText "You are not allowed to give someone a higher access than you!!!", BrightRed
    Else
        Call SendSetAccess(Player(myTarget).Name, scrlSetAccess.Value)
        picSetAccess.Visible = False
    End If
End Sub
```
but even with level 4 access it simply says invalid access level what am i doing wrong?
Link to comment
Share on other sites

There are two reasons for "Invalid Access Level":

* Attempting to set the user's access to a number less than 0 or more than 3\. **To reiterate, you cannot set someone else's access to 4!** Only the server can do that!
* Attempting to change someone's who access level is equal to your access level
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...