Rat32 Posted July 5, 2015 Share Posted July 5, 2015 function rejestrujemy(username, password) litery = {"a", "b", "c"} local istnienieLoad = exports.DB2:pobierzWyniki("SELECT * FROM ACCS WHERE acc=?", username) if istnienieLoad == nil then for i=1, #username do local toprint = username:sub(i, i) if toprint == [litery] then outputChatBox(toprint) else (...) This is my code. Why "if" don't read the table? Link to comment
Perfect Posted July 17, 2015 Share Posted July 17, 2015 Don't know if you still need help with it, But here you go: function rejestrujemy(username, password) litery = {"a", "b", "c"} local istnienieLoad = exports.DB2:pobierzWyniki("SELECT * FROM ACCS WHERE acc=?", username) if istnienieLoad == nil then for i=1, #username do local toprint = username:sub(i, i) if toprint == litery[i] then outputChatBox(toprint) else (...) 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