dontdo Posted June 21, 2016 Share Posted June 21, 2016 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
MR.S3D Posted June 21, 2016 Share Posted June 21, 2016 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
dontdo Posted June 21, 2016 Author Share Posted June 21, 2016 I already did that it's a part of the script (where the problem is ) not the whole script Link to comment
MR.S3D Posted June 21, 2016 Share Posted June 21, 2016 I already did that it's a part of the script (where the problem is ) not the whole script show me all code. Send it private message. Link to comment
KariiiM Posted June 22, 2016 Share Posted June 22, 2016 (edited) show your full code, this part won't help us to fix your problem. Edited June 22, 2016 by Guest Link to comment
dontdo Posted June 22, 2016 Author Share Posted June 22, 2016 I already did that it's a part of the script (where the problem is ) not the whole script show me all code. Send it private message. Solved, Thanks Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now