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

Error:

error 052: multi-dimensional arrays must be fully initialized

Part of the script:



Reply
#2

}; should be }
Reply
#3

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
}; should be }
(227) : error 001: expected token: ";", but found "new"
Reply
#4

Post the code here, don't take screenshots.
Also, I'm pretty sure you are missing an dimension.
Reply
#5

You are also wasting a lot of memory, your amx file size will increase. leave the square brackets empty
For example:
Код:
new Example[MAX_JOBS][JobData] = {
{"Job1"},
{"Job2"},
{"Job3"}
};
Will not work.
Код:
new Example[][] = {
{"Job1"},
{"Job2"},
{"Job3"}
};
will work
Reply
#6

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
You are also wasting a lot of memory, your amx file size will increase. leave the square brackets empty
For example:
Код:
new Example[MAX_JOBS][JobData] = {
{"Job1"},
{"Job2"},
{"Job3"}
};
Will not work.
Код:
new Example[][] = {
{"Job1"},
{"Job2"},
{"Job3"}
};
will work
This isn't a good solution considering he has a limit of 15 Max jobs creating an array with no limit is pointless AFAIK.

Post code OP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)