hello guys my friend today as been scripting etc, but for some reason we getting this error and we cant fix the issue
Код:
C:\Users\Brandon\Desktop\IGRP\gamemodes\Infusion.pwn(147) : error 052: multi-dimensional arrays must be fully initialized
C:\Users\Brandon\Desktop\IGRP\gamemodes\Infusion.pwn(156) : error 052: multi-dimensional arrays must be fully initialized
new CommandJobs[MAX_JOBS][126] = //Define jobs commands
{
{"Jobless"},
{"MECHANIC /repair /tow"},
{"TAXI /fare"},
{"FEDEX /collect /deliver"},
{"PIZZABOY /collect /deliver"}
};
new NamesJobs[MAX_JOBS][30] = //Define jobs name
{
{"Jobless"},
{"Mechanic"},
{"Taxi Driver"},
{"Fedex Delivery"},
{"Pizza Delivery"}
};
if(response)
{
switch(dialogid)
{
case 171:// Made By sam's dialog
{
switch(listitem)// Checking which listitem was selected
{
case 0: // Jobless
{
SendClientMessage(playerid,0x33CCFFAA,"Congratulations with your new job, type /jobhelp to see your new command.");
wJob[playerid] = 1;
}
case 1: // Mechanic
{
SendClientMessage(playerid,0x33CCFFAA,"Congratulations with your new job, type /jobhelp to see your new command.");
wJob[playerid] = 2;
}
case 2: // Taxi
{
SendClientMessage(playerid,0x33CCFFAA,"Congratulations with your new job, type /jobhelp to see your new command.");
wJob[playerid] = 3;
}
case 3: // Fedex
{
SendClientMessage(playerid,0x33CCFFAA,"Congratulations with your new job, type /jobhelp to see your new command.");
wJob[playerid] = 4;
}
case 5: // Pizza Delivery
{
SendClientMessage(playerid,0x33CCFFAA,"Congratulations with your new job, type /jobhelp to see your new command.");
wJob[playerid] = 6;
}
}
}
}
}
return 1;
}
What do you have MAX_JOBS defined as? It might be less than the amount of jobs you have.