Errors: 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: Errors: error 052: multi-dimensional arrays must be fully initialized (
/showthread.php?tid=503722)
Errors: error 052: multi-dimensional arrays must be fully initialized -
Mriss - 30.03.2014
help me with these errors please
Код:
Millenium.pwn(129) : error 052: multi-dimensional arrays must be fully initialized
Millenium.pwn(136) : error 052: multi-dimensional arrays must be fully initialized
The Script
pawn Код:
new CommandJobs[ MAX_JOBS ][ 126 ] = //Define jobs commands
{
{"Jobless"}, //1 Jobless not have commands.
{"MECHANIC /its commands"}, //2 MECHANIC Commands
{"TAXI /its commands"} //3 TAXI Commands
};//Line 129
new NamesJobs[ MAX_JOBS ][ 30 ] = //Define jobs name
{
{"Jobless"},
{"Mechanic"},
{"Taxi Driver"}
};//Line 136
Re: Errors: error 052: multi-dimensional arrays must be fully initialized -
luis_mendoza - 30.03.2014
Check your MAX_JOBS.
Re: Errors: error 052: multi-dimensional arrays must be fully initialized -
iThePunisher - 30.03.2014
its because you dont have #define MAX_JOBS to 3
Re: Errors: error 052: multi-dimensional arrays must be fully initialized -
Konstantinos - 30.03.2014
MAX_JOBS must be 3 otherwise the error will be given. By the way, you don't need brackets around the strings:
pawn Код:
new CommandJobs[ MAX_JOBS ][ 126 ] = //Define jobs commands
{
"Jobless", //1 Jobless not have commands.
"MECHANIC /its commands", //2 MECHANIC Commands
"TAXI /its commands" //3 TAXI Commands
};
new NamesJobs[ MAX_JOBS ][ 30 ] = //Define jobs name
{
"Jobless",
"Mechanic",
"Taxi Driver"
};