Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local theQuery = mysql_query(theConnecting, "SELECT Username FROM Accounts WHERE Username='"..playerUsername.."'")
- if(mysql_num_rows(theQuery) > 0) then
- -- exists
- local theQuery = mysql_query(theConnecting, "SELECT Username FROM Accounts WHERE Username='"..playerUsername.."' AND Password=md5('"..playerPassword.."')")
- if(mysql_num_rows(theQuery) > 0) then
- outputChatBox("#0066CC* [SERVER] #FFFFFFYou have succefully logged in.", thePlayer, 255, 255, 255, true)
- isLoggedIn = true
- else
- outputChatBox("#0066CC* [ERROR] #FFFFFFIncorrect Password.", thePlayer, 255, 255, 255, true)
- end
- else
- outputChatBox("#0066CC* [ERROR] #FFFFFFThe account does not exist.", thePlayer, 255, 255, 255, true)
- end
Add Comment
Please, Sign In to add comment