Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkLogin(user, password)
- outputChatBox(user.." "..password)
- local query = dbPoll(dbQuery(mysql, "SELECT * FROM Users WHERE Username = ?", user), -1)
- if query then
- for k, v in ipairs(query) do
- if v.Username == user then
- if v.Password == password then
- outputChatBox("Sikeres bejelentkezés!")
- else
- outputChatBox("Hibás jelszó!")
- end
- end
- end
- end
- end
- addEvent("checkLogin", true)
- addEventHandler("checkLogin", root, checkLogin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement