Code:
cmd_list_size = 9; //max size of grid
cmd_list = ds_grid_create(1,cmd_list_size); //create grid
ds_grid_clear(cmd_list,0);
var grid = cmd_list;
//set all commands to false
for (var i = 0; i < cmd_list_size; i++)
{
ds_grid_add(grid, 1, i, false);
}
//COMMANDS
grid[# 0, 0] = "LOGOFF";
grid[# 0, 1] = "HELLO";
grid[# 0, 2] = "2";
grid[# 0, 3] = "3";
grid[# 0, 4] = "4";
grid[# 0, 5] = "5";
grid[# 0, 6] = "6";
grid[# 0, 7] = "7";
grid[# 0, 8] = "8";
grid[# 0, 9] = "9";
Grid 0, index out of bounds writing [1,0] - size is [1,9]
Grid 0, index out of bounds writing [1,1] - size is [1,9]
Grid 0, index out of bounds writing [1,2] - size is [1,9]
Grid 0, index out of bounds writing [1,3] - size is [1,9]
Grid 0, index out of bounds writing [1,4] - size is [1,9]
Grid 0, index out of bounds writing [1,5] - size is [1,9]
Grid 0, index out of bounds writing [1,6] - size is [1,9]
Grid 0, index out of bounds writing [1,7] - size is [1,9]
Grid 0, index out of bounds writing [1,8] - size is [1,9]
Grid 0, index out of bounds writing [0,9] - size is [1,9]
But heres the thing, the ds_grid works fine and is filled with all the information I want in the correct places
I dont understand at all, what the problem is
Last edited: