Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. function checkLogin(user, password)
  2. outputChatBox(user.." "..password)
  3. local query = dbPoll(dbQuery(mysql, "SELECT * FROM Users WHERE Username = ?", user), -1)
  4. if query then
  5. for k, v in ipairs(query) do
  6. if v.Username == user then
  7. if v.Password == password then
  8. outputChatBox("Sikeres bejelentkezés!")
  9. else
  10.  
  11. outputChatBox("Hibás jelszó!")
  12. end
  13. end
  14. end
  15. end
  16.  
  17. end
  18. addEvent("checkLogin", true)
  19. addEventHandler("checkLogin", root, checkLogin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement