![]() |
SetAcccess Button on Server - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: SetAcccess Button on Server (/showthread.php?tid=1326) |
SetAcccess Button on Server - Styre - 03-10-2007 I added Binary accounts, and I wanted to make a button on my server that gave the Name in the textbox access level 4. Now I get a runtime error 13 with this piece of code: [code]Private Sub GiveAdmin_Click() Call SetPlayerAccess(frmServer.txtGiveAdminName, 4) ' Re: SetAcccess Button on Server - Rian - 03-10-2007 This should be pretty simple. I'll play around with it when I get off work if no one else has replied by then. Re: SetAcccess Button on Server - Styre - 03-10-2007 Dave Wrote:If I'm not mistaken, setAccess does so with the index number, and not the char/account name. 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() U were right Dave, ty for pointing that out. Re: SetAcccess Button on Server - Matt - 04-10-2007 Dave Wrote:Pretty good of me for working off over a year old memories XD I was gonna suggest the same thing, also that in the first code he posted, he didn't have the .text after the text box name. ![]() Re: SetAcccess Button on Server - William - 04-10-2007 Perfekt Wrote:I don't think the .text is really needed actually. Not 100% sure though.Dave Wrote:Pretty good of me for working off over a year old memories XD Re: SetAcccess Button on Server - Styre - 04-10-2007 It is ,, Otherwise it doesn't check the property (w/e u spell it) Text, where u need to place the name of the one u want to make admin. |