Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Is it possible assigning a number to string in table?

Asked by 6 years ago

Trying to do what I explained in the title.

This is what I tried:

local tab = {}
table.insert(tab, ["123456789"] = "123")

Andd.. it errored. Is there a solution for this problem, or a different method of doing this?

1 answer

Log in to vote
0
Answered by 6 years ago
local tab = {}
tab["123456789"] = "123"
0
This just overwrites, I need to use a table.insert like function. DjinoKip 78 — 6y
0
Fixed DjinoKip 78 — 6y
Ad

Answer this question