error 052: multi-dimensional arrays must be fully initialized - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 052: multi-dimensional arrays must be fully initialized (
/showthread.php?tid=646028)
error 052: multi-dimensional arrays must be fully initialized -
TaylorShade - 09.12.2017
Error:
error 052: multi-dimensional arrays must be fully initialized
Part of the script:
Re: error 052: multi-dimensional arrays must be fully initialized -
jasperschellekens - 09.12.2017
}; should be }
Re: error 052: multi-dimensional arrays must be fully initialized -
TaylorShade - 09.12.2017
Quote:
Originally Posted by jasperschellekens
}; should be }
|
(227) : error 001: expected token: ";", but found "new"
Re: error 052: multi-dimensional arrays must be fully initialized -
Dayrion - 09.12.2017
Post the code here, don't take screenshots.
Also, I'm pretty sure you are missing an dimension.
Re: error 052: multi-dimensional arrays must be fully initialized -
jasperschellekens - 09.12.2017
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
Re: error 052: multi-dimensional arrays must be fully initialized -
Isolated - 09.12.2017
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