Jump to content

SQL. Accounts doesnt saves


Kekoo

Recommended Posts

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

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

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

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 :D

Thanks anyway for the help :)

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...