Paper Posted January 15, 2012 Share Posted January 15, 2012 I made this code: for i, acc in pairs(getAccounts()) do if executeSQLSelect ( getAccountName(acc), "clanName") then if executeSQLSelect ( getAccountName(acc), "clanName")[1]['clanName'] == clanName then outputChatBox(executeSQLSelect ( getAccountName(acc), "clanName")[1]['clanName'].." == "..clanName) alreadyTaken = true break end end end But it returns error @ line: 2, no such table. But in the wiki i read that it will return false if invalid arguments were passed... so why it returns the error? Link to comment
Thelastride Posted January 15, 2012 Share Posted January 15, 2012 Returns A table over the accounts that exist in the server internal.db file. This table might be empty. Table is empty.No such account Link to comment
Paper Posted January 15, 2012 Author Share Posted January 15, 2012 The problem is not in the getAccounts() function, beacuse the problem is just when there is not a table whit that name, when there is one, no error is showing... Link to comment
Castillo Posted January 15, 2012 Share Posted January 15, 2012 I suggest you to go back to the wiki and read about SQLITE functions, that's just a mess. 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