Hey ich habe versucht ein Login Script zu basteln das mit meinem GUI "kommuniziert"...
Ich weiß aber nicht ob es bis jetzt so alles richtig is..
Hier mein Script:
Code
function submitregister()
local acc = guiGetText(gui["lineEdit_3"])
local pass = guiGetText(gui["lineEdit_4"])
local name = getAccount(acc)
if name==false then
addAccount(tostring(acc), tostring(pass))
outputChatBox("You are successfully registered!")
outputChatBox("Now you can login with your Account: ..acc.. !")
guiSetVisible(gui["_root"], false)
showCursor(false)
else
outputChatBox("Your chosen Username is in use! Please try another!")
end
end
addEventHandler("onClientGUIClick", gui["pushButton_2"], submitregister, false)
function submitlogin()
local acc = guiGetText(gui["lineEdit"])
local pass = guiGetText(gui["lineEdit_2"])
local name = getAccount(acc)
if name=false then
outputChatBox("Sorry, this username does not exist!")
else
Alles anzeigen
Ich weiß es ist noch nicht fertig aber ich wollte einfach mal nachfragen ob es bis jetzt .. einigermaßen richtig ist..
Danke im vorraus!
MfG Crash