- edited description
Table initializer not working
Issue #12
resolved
Creating a table with values is not possible. You can use the following statement as a workaround, but you should be able to use the second code example.
Workaround
$table[1] = "foo";
$table[2] = "bar";
Table initializer
$table = {
[1] = "foo",
[2] = "bar"
};
With the second code example, the parser throws the following error:
[Warning] [MobTalker2] The interaction script threw an error: expected function, got nil (at line: <line of first table element>).
Comments (3)
-
reporter -
Right. xs2007 noticed that a while ago. Never got around to fix it. Will do.
-
- changed status to resolved
- Log in to comment