Micorosoft2
(andrew_isblazing)
1
for example I create multidimensional array like in C++:
#include <iostream>
int main() {
int table[4][4] = {1,0,0,1},
{0,0,1,0},
{1,1,0,0},
{0,1,1,1}
std::cout << table[0][3];
}
does it work in lua?
local grid = {
{1,2,3,4},
{5,6,7,8},
{9,0,1,2},
}
print(grid[2][3]) --> 7
Does it work?
#help-and-feedback:scripting-support
system
(system)
Closed
3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.