error 052: multi-dimensional arrays must be fully initialized
#5

ok so basically you are defining the array but not using storing the values in it

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"

}; 
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

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
}; 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)