Guest User

Untitled

a guest
May 20th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. local theQuery = mysql_query(theConnecting, "SELECT Username FROM Accounts WHERE Username='"..playerUsername.."'")
  2.  
  3. if(mysql_num_rows(theQuery) > 0) then
  4.  
  5. -- exists
  6. local theQuery = mysql_query(theConnecting, "SELECT Username FROM Accounts WHERE Username='"..playerUsername.."' AND Password=md5('"..playerPassword.."')")
  7.  
  8. if(mysql_num_rows(theQuery) > 0) then
  9.  
  10. outputChatBox("#0066CC* [SERVER] #FFFFFFYou have succefully logged in.", thePlayer, 255, 255, 255, true)
  11. isLoggedIn = true
  12.  
  13. else
  14.  
  15. outputChatBox("#0066CC* [ERROR] #FFFFFFIncorrect Password.", thePlayer, 255, 255, 255, true)
  16.  
  17. end
  18.  
  19.  
  20. else
  21.  
  22. outputChatBox("#0066CC* [ERROR] #FFFFFFThe account does not exist.", thePlayer, 255, 255, 255, true)
  23.  
  24. end
Add Comment
Please, Sign In to add comment