Jump to content

can't check if account existing


dontdo

Recommended Posts

Hello ,

how to check if account is already registered before , i tried using get Account but it always ouputs Registered even if the account was registered before . so what should i do .

local acco = getAccount ( Reg_acc ) 
    if (acco) then -- If Registered Account Already existing 
    outputChatBox ("Change User") 
    else -- If not existing 
    outputChatBox ("Registerd") 

Link to comment
Hello ,

how to check if account is already registered before , i tried using get Account but it always ouputs Registered even if the account was registered before . so what should i do .

local acco = getAccount ( Reg_acc ) 
    if (acco) then -- If Registered Account Already existing 
    outputChatBox ("Change User") 
    else -- If not existing 
    outputChatBox ("Registerd") 

You should use in server side

for clinet use

triggerServerEvent 

to send user name to server.

and in server side addEvent...

Example server side:

  
  
    local acco = getAccount ( 'mr.saad' ) 
    if (acco) then -- If Registered Account Already existing 
    outputChatBox ("Change User") 
    else -- If not existing 
    outputChatBox ("Registerd") 
    end 
  
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...