04.09.2014, 09:01
ok so basically you are defining the array but not using storing the values in it
a short example with enum:
here i have entered 3 rows with only 1 column , which was iname(itemname) under iteminfo enum
where you are trying to use array for 18 rows and 11 columns
Must be somthing like
a short example with enum:
PHP код:
enum itemInfo { // enums used for the items
iname[256]
};
PHP код:
new ItemName[][itemInfo] = { // you left the items unlimited as you can see i haven't enter any value in []
{"Wood"},
{"Stone"},
{"Steel"}
};
where you are trying to use array for 18 rows and 11 columns
Must be somthing like
PHP код:
new ItemName[MAX_ITEMS][11] = {
{0,1,2,3,4,5,6,7,8,9,10}, // row 1
{0,1,2,3,4,5,6,7,8,9,10}, // row 2
{0,1,2,3,4,5,6,7,8,9,10}, // row 3
.
.
.
{0,1,2,3,4,5,6,7,8,9,10} // row n
};