General > Developers Corner
Working MySQL User Authentication with Global Ban support
gameguysz:
i did create the table and for the second part im not really sure.. I used the svn download so its up to date but how do i fix it?
Megiddo:
Are you getting any errors in server console?
JamminR:
It also requires the sql module MrPresident has in his original post. Make sure you have it.
Make sure SVN ULib and SVN ULX work for you non-SQL, then try tinkering by adding this.
This still relies on ULib to be working properly.
MrP shows what must be in the table for it to work.
If that's still not working, MrP has debug printout code in it commented out.
Several lines in the code have "--" in front of them.
Those are debug lines. If you remove those --, you'll see what's going on in the script.
Also... never say, ever say, "it doesn't work"
Unless the developer originally says "this code doesn't work, it's just an idea or a basis for someone else to build off of", it worked for the person who posted the code.
Always post errors, or what you did step by step that didn't work, but, really, errors are best.
[Edit= - As I was writing this, Megiddo posted...again, like he asks and I say, never say it doesn't work, always give errors.
gameguysz:
I got it working :] My table for banned was messed up :P.
But it says im a user? My guys the root_user with the ULX mod..
How do i fix that?
MrPresident:
did you add yourself to superadmin using this mod? It doesn't pull in anything from the users.txt or from your existing ULX users file.
with or without yourself in game... type the following..
--- Code: ---g4p_setgroup "STEAMID" superadmin
--- End code ---
note that the steamid is in quotes.
This is, also, unless you changed the concommands.
Also.. if you have access to the SQL database you can manually change your group there. You'd need to reconnect to the server if you do it this way though. (assuming you were connected when you made the change)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version