“cara membuat meja di lua” Kode Jawaban

Tabel Lua

local favoritefoods_table = {"hamburger", "spaghetti", "pizza", "potato chips"}
--the table--

for i, v in pairs(favoritefoods_table) do --loop through the table-- 
	print(i) --print the number--
  	print(v) --print the value--
end
Confused Cheetah

cara membuat meja di lua

--You need to use this {} and put them in a varible
local Table = {13,"1hihihi",
-- u can even do tis
{122,222}}
Tense Turkey

Tabel Lua

    a = {}
    x = "y"
    a[x] = 10                 -- put 10 in field "y"
    print(a[x])   --> 10      -- value of field "y"
    print(a.x)    --> nil     -- value of field "x" (undefined)
    print(a.y)    --> 10      -- value of field "y"
Famous Flamingo

Jawaban yang mirip dengan “cara membuat meja di lua”

Pertanyaan yang mirip dengan “cara membuat meja di lua”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya