03-10-2007, 08:21 PM
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.