Jump to content
  • 0

Jonyk

Question

I have tried so, but I need every user to have his password

 

local Login={'user1', 'user2';}
local Pass={'1111', '2222';}

User_Login=gg.prompt({
  "Введите Логин от приват-чита:"
  }, {
  [1]='Логин'
  }, {
  [1] = "text"
})

function Ldone()
--Correct
gg.toast("Логин правильные")
end

function End_Login()
print("Неправильные логин");
os.exit();
end

if User_Login[1] == Login[1] then
Ldone()
else
End_Login()
end

User_pass=gg.prompt({
	'Введите пароль от приват-чита:'
	}, {
	[1]='Пароль'
	}, {
	[1]= "number"
	});

function PDone()
--Correct
gg.toast("Пароли правильные")
end

function End_Pass()
print("Неправильные пароль");
os.exit();
end

if User_pass[1] == Pass[1] then
PDone()
else
End_Pass()
end

gg.alert("Done")

function Exit()
os.exit();
end

Exit()
--END SCRIPT--

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.