Jump to content

Help please!!


orel56000

Recommended Posts

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

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
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

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...