{
user1 = {pass = "pass", key = " ",},
}
I then have code that gets the table and compares it to the pass part of it:if users[user1][pass] == "pass" then -- do stuff end
but it seems that does not work, any ideas? thanks
Posted 03 February 2015 - 09:16 AM
{
user1 = {pass = "pass", key = " ",},
}
I then have code that gets the table and compares it to the pass part of it:if users[user1][pass] == "pass" then -- do stuff end
Posted 03 February 2015 - 09:31 AM
users["user1"]["pass"]
users.user1.pass
Posted 03 February 2015 - 11:04 PM
Bomb Bloke, on 03 February 2015 - 09:31 AM, said:
users["user1"]["pass"]
users.user1.pass
Posted 03 February 2015 - 11:11 PM
{
pData = {
[1] = "something",
},
}
Posted 03 February 2015 - 11:23 PM
KingofGamesYami, on 03 February 2015 - 11:11 PM, said:
{
pData = {
[1] = "something",
},
}
{
cody = {
"pass",
},
}
local a = "cody"
local b = "pass
{
a,
b,
}
Posted 04 February 2015 - 12:26 AM
{
cody = {
"pass",
},
}
local file = fs.open("/database/users", "r")
local dat = file.readAll()
users = textutils.unserialize(dat)
file.close()
{
cody = "pass",
}
{
"cody",
"pass",
}
if incoming[1] and incoming[2] == users[incoming[1]] then
Posted 04 February 2015 - 12:33 AM
Bomb Bloke, on 04 February 2015 - 12:26 AM, said:
{
cody = {
"pass",
},
}
local file = fs.open("/database/users", "r")
local dat = file.readAll()
users = textutils.unserialize(dat)
file.close()
{
cody = "pass",
}
{
"cody",
"pass",
}
if incoming[1] and incoming[2] == users[incoming[1]] then
0 members, 1 guests, 0 anonymous users