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

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
Reply
#2

Check your MAX_JOBS.
Reply
#3

its because you dont have #define MAX_JOBS to 3
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)