Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SetAcccess Button on Server
#3
Dave Wrote:If I'm not mistaken, setAccess does so with the index number, and not the char/account name.
If I remember correctly, findPlayer takes a CHARACTER name and turns it into an index.

look into it.

How can I use the Indexnumber findplayer returns in my Call SetPlayerAcces(index, access) line then?

EDIT: NVM got it now.

For how I fixed it, this is my code now:

Code:
Private Sub GiveAdmin_Click()
Dim i As Long
i = FindPlayer(frmServer.txtGiveAdminName.Text)

    Call SetPlayerAccess(i, 7)
    Call TextAdd(frmServer.txtText, txtGiveAdminName.Text & "had been given acces level 7!", True)
    
End Sub

U were right Dave, ty for pointing that out.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)