From old manual, we can initialize global table when it is declared, like this.
global a: table[count] of string = {
[11] = “eleven”,
[5] = “five”,
};
However, if I put them within event or function, assignment clash error happens. Is there any way that I can do the same thing for the local defined table?
From old manual, we can initialize global table when it is declared, like this.
global a: table[count] of string = {
[11] = "eleven",
[5] = "five",
};
However, if I put them within event or function, assignment clash error happens. Is there any way that I can do the same thing for the local defined table?
This syntax looks like it currently works:
local a: table[count] of string = table(
[11] = "eleven",
[5] = "five"
);