Kekoo Posted June 24, 2014 Share Posted June 24, 2014 Hello all. As the tittle says. Im working with an server and im using SQL System. When some one is registering they accounts doesnt shows in SQL Table ( usergroups ) how can i fix so the accounts does starts to shows there? Cuz atm i need to add them there automantly and its pretty anoying. I have a script thats making so i can add players to groups via SQL but the accounts need to be listening in the usergroups for using that command . Any help would be approcicated Cheers // Linkan Link to comment
Renkon Posted June 24, 2014 Share Posted June 24, 2014 Shows us the script where it adds the account to the db Link to comment
Kekoo Posted June 24, 2014 Author Share Posted June 24, 2014 Wait i need a script that makes accounts should be saved in the SQL ( usergroups ) ? Link to comment
Renkon Posted June 25, 2014 Share Posted June 25, 2014 As the tittle says. Im working with an server and im using SQL System. When some one is registering they accounts doesnt shows in SQL Table ( usergroups ) how can i fix so the accounts does starts to shows there? Of course.. you need a script to do so Link to comment
Kekoo Posted June 25, 2014 Author Share Posted June 25, 2014 Omg. then i need to find that script -.- Link to comment
Kekoo Posted June 26, 2014 Author Share Posted June 26, 2014 The Scripts im using to the SQL Database is : Sqlitebrowser , SQL , ACL , database The second SQL i did write up is some thing that is working with Sqlitebrowser. But i think the database , SQL or ACL is nothing to do with the login saving Link to comment
Kekoo Posted June 26, 2014 Author Share Posted June 26, 2014 Lock this topic iv fixed it. Just added this to the login menu : function registerPlayer(username,password) if not (username == "") then if not (password == "") then local account = getAccount (username) if (account == false) then local query = executeSQLQuery("INSERT INTO usergroups(accountname, groups) VALUES (?,?)", username, "Gay") local accountAdded = addAccount(tostring(username),tostring(password)) Then it did starts to works Thanks anyway for the help Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now