Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. function CheckRegistration (id)
  2.      if testMYSQLconnect then
  3.      local checkUSGN = player(id, "usgn")
  4.      print("debug 1")
  5.      conn:query("SELECT id, usgn FROM users WHERE usgn = "..checkUSGN)
  6.      result = conn:store_result()
  7.           for id, usgn in result:rows() do
  8.           local USGN = usgn
  9.           if (player(id, "usgn") == USGN) then
  10.                print(USGN)
  11.           else
  12.                msg2(id, "\169255000000Username doesn't exist in the database")
  13.           end
  14.          -- end
  15.      conn:close()
  16.      end
  17.      else
  18.           return 1
  19.      end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement