Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function QuerySQL(username,password)
- local query = "INSERT INTO accounts SET username='" .. username .. "', password=MD5('" .. password .. "')"
- if (exports["mysqls"]:mysqlQuery(query)) then
- outputChatBox("Account created successfuly.", source)
- else
- outputChatBox("An error has occured when trying to create your account.", source)
- end
- end
- addEvent("ContactSQL", true)
- addEventHandler("ContactSQL", root, QuerySQL)
Add Comment
Please, Sign In to add comment