orel56000 Posted January 25, 2016 Posted January 25, 2016 function clickedregister() local username = guiGetText(registere[1]) outputChatBox(username) local usercheck = fileOpen(username) if usercheck then fileClose(usercheck) outputChatBox("This account is already registered!") else outPutChatBox("Ready to reigster!") end end addEventHandler("onClientGUIClick",registerb[1],clickedregister) Its outputting only this: outputChatBox(username) thanks for helpers
KariiiM Posted January 25, 2016 Posted January 25, 2016 Try that function clickedregister() local username = guiGetText(registere[1]) outputChatBox(tostring(username)) local usercheck = fileOpen(username) if usercheck then fileClose(usercheck) outputChatBox("This account is already registered!") else outputChatBox("Ready to reigster!") end end addEventHandler("onClientGUIClick",registerb[1],clickedregister)
orel56000 Posted January 25, 2016 Author Posted January 25, 2016 Try that function clickedregister() local username = guiGetText(registere[1]) outputChatBox(tostring(username)) local usercheck = fileOpen(username) if usercheck then fileClose(usercheck) outputChatBox("This account is already registered!") else outputChatBox("Ready to reigster!") end end addEventHandler("onClientGUIClick",registerb[1],clickedregister) thanks working btw how did you saw the outPut ? lol
KariiiM Posted January 25, 2016 Posted January 25, 2016 thanks working btw how did you saw the outPut ? lol I care alot about these small stuffs and you're welcome.
orel56000 Posted January 25, 2016 Author Posted January 25, 2016 thanks working btw how did you saw the outPut ? lol I care alot about these small stuffs and you're welcome. thanks mate
KariiiM Posted January 25, 2016 Posted January 25, 2016 thanks mate Anytime, Also I suggest you to use /debugscript 3, this will output your code errors in each actions that your script did and it will help you alot in developing your scripting skills. Good luck, I wish you the best
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