Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.28 KB | None | 0 0
  1. function onRegister ( player, user, pass, question, answer, name, country, age, pic )
  2. local serial = getPlayerSerial(player)
  3. info = executeSQLSelect ( "GgInfo", "serial", "serial = '" .. serial .. "'" )
  4. if ( type( info ) == "table" and #info == 0 ) or not info then
  5.  executeSQLInsert ( "GgInfo", "'".. serial .."','topic','".. tostring (name) .."','".. tostring (country) .."','".. tostring (age) .."','".. tostring (pic) .."'" )
  6. end
  7. mail = executeSQLSelect ( "GgAcc", "serial", "serial = '" .. serial .. "'" )
  8. if ( type( mail ) == "table" and #mail == 0 ) or not mail then
  9. local serial = getPlayerSerial(player)
  10.  executeSQLInsert ( "GgAcc", "'".. serial .."','".. tostring (user) .."','".. tostring (pass) .."','".. tostring (question) .."','".. tostring (answer) .."'" )
  11. outputChatBox("you have registered a new GgMail!", player, 255, 255, 0)
  12. triggerClientEvent(player, "login_now", getRootElement(), user )
  13. outputChatBox("user : "..user.."", player, 255, 255, 0)
  14. outputChatBox("pass : "..pass.."", player, 255, 255, 0)
  15. outputChatBox("Question : "..question.."", player, 255, 255, 0)
  16. outputChatBox("answer : "..answer.."", player, 255, 255, 0)
  17. outputChatBox("pic : "..pic.."", player, 255, 255, 0)
  18. else
  19. outputChatBox("You already have a GgMail, Please Login !!", player, 255, 255, 0)
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement