Jump to content

Can someone make me understand?


Anubhav

Recommended Posts

  • Moderators
myTable = {"Anubhav","IIYAMA","MTA","moderators", "super moderators", "admins"}  
  
--Is same as: 
  
myTable = { 
[1]="Anubhav", 
[2]="IIYAMA", 
[3]="MTA", 
[4]="moderators", 
[5]="super moderators", 
[6]="admins" 
}  
-- [1] is index number 1, defines the location of the information in a table. 
outputChatBox("test: " .. myTable[1]) --Anubhav 
outputChatBox("test: " .. myTable[2]) --IIYAMA 
outputChatBox("test: " .. myTable[3]) --MTA 
----------------------------- 
for k,v in ipairs(myTable) do -- loop 
outputChatBox("index: " .. k .. ", Content: " .. v ) 
outputChatBox(v)--****** 
end 

Is same as:******

outputChatBox("Anubhav") 
outputChatBox("IIYAMA") 
outputChatBox("MTA") 
outputChatBox("moderators") 
outputChatBox("super moderators") 
outputChatBox("admins") 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...