orel56000 Posted January 25, 2016 Share 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 Link to comment
KariiiM Posted January 25, 2016 Share 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) Link to comment
orel56000 Posted January 25, 2016 Author Share 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 Link to comment
KariiiM Posted January 25, 2016 Share 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. Link to comment
orel56000 Posted January 25, 2016 Author Share 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 Link to comment
KariiiM Posted January 25, 2016 Share 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 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