AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1516
|
Posted: Mon Feb 03, 2025 6:19 pm Post subject: |
|
|
Unless you are connecting to an existing site login php, it may be difficult to create this with CE and host it on any server.
On the other hand, you can do a simple login test like this.
For this, 2 edit boxes and a button are enough:
Code: | local name = "123"
local pass = "321"
function checkUser(nm,pw)
if nm~=name or pw~=pass then
print("Wrong username or password!")
else
print("Login successful..")
end
end
-- name
checkUser("123","456")
-- pass
checkUser("678","321")
-- success
checkUser("123","321")
--
UDF1.CEButton1.OnClick=function()
local n = UDF1.CEEdit1.Text
local p = UDF1.CEEdit2.Text
if n~="" or p~="" then
checkUser(n,p)
else
print("You have entered incomplete information. Please check!")
end
end
|
_________________
|
|