Hey Guy's really miss DirtyFingers two Table WHOTO's...
I want to learn this and how I call them and use them in
a function...
Example then:
-- TABLES --
UserInfos = {
["username1"] = {
Name = "Name",
IP = "IP",
Share = "Share",
Profile = "Profile",
Client = "Client",
Version = "Version",
Slots = "Slots",
Speed = "Speed",
Hubs = "Hubs",
Moce = "Mode",
Kicks = "Kicks",
Kmess = "Kmess",
Bans = "Bans",
Bmess = "Bmess",
},
["username2"] = {
Name = "Name",
IP = "IP",
Share = "Share",
Profile = "Profile",
Client = "Client",
Version = "Version",
Slots = "Slots",
Speed = "Speed",
Hubs = "Hubs",
Moce = "Mode",
Kicks = "Kicks",
Kmess = "Kmess",
Bans = "Bans",
Bmess = "Bmess",
},
}
-- And writing and reading from this two
-- User Name/IP Check
Checker = {
["IP"] = {
"Names",
"Names",
},
["IP"] = {
"Names",
"Names",
},
}
Want to learn this... And don't redirect me to the manual
I have learnd more from you guy's than from the manual...
ThX / NL
Could I get some help here guys... plz...
have read in manual but no success...
/NL
Miss DirtyFinger's Table lessons
/NL
Guy's plz.. :))
SendToAll(UserInfos.username1.Name)
try something like that, you may need a bot name
So I place a dot (.) between as I do with just two:
Table{}
Table.Nick = "name" -- SendToAll(Bot,"Nick: "..Table.Nick)
like that
but if I have more tables I use it like this:
Table{}
Table.Nick = {
"name" = "nick" -- SendToAll(Bot,"Nick: "..Table.Nick.name)
},
Am I right ???
Hmm im not to sure about that........
tezlo is good at this, maybe when hes around he will know the exact answer yep....
ThX for the good start atleast, ThX pH?tt?.
/NL
ok here what you got wrong mayeb you can learn from this
here we go hmmmmm ok
UserInfos = {
["username1"] = {
Name = "Name",
IP = "IP",
Share = "Share",
Profile = "Profile",
Client = "Client",
Version = "Version",
Slots = "Slots",
Speed = "Speed",
Hubs = "Hubs",
Moce = "Mode",
Kicks = "Kicks",
Kmess = "Kmess",
Bans = "Bans",
Bmess = "Bmess",
},
["username2"] = {
Name = "Name",
IP = "IP",
Share = "Share",
Profile = "Profile",
Client = "Client",
Version = "Version",
Slots = "Slots",
Speed = "Speed",
Hubs = "Hubs",
Moce = "Mode",
Kicks = "Kicks",
Kmess = "Kmess",
Bans = "Bans",
Bmess = "Bmess",
},
}
function Main()
Bot = "GREED"
Test = UserInfos.username1.Name
SendToAll(Bot,Test)
end
Hmm now im confused LOL, as i dont quite understadn what you are trying to accomplish
hehe neither do i but theres not much to it..
userinfo.tezlo is the same as userinfo["tezlo"]
you can use the dot notation as long as there are no special characters in the index
you have to use brackets if the index is a variable.. userinfo[user.sName] or even userinfo[user["sName"]]
btw.. functions get called whereas tables get indexed
ThX Guy's, just wanted to understand it...
The code it self has noting to do with it...
Just I playing around...
But now I understand it more...
/NL