[Duda] JoinPed
#1

Buenas amigos de sa-mp, їpodrian ayudarme con este error?:

Код:
error 052: multi-dimensional arrays must be fully initialized
El error se encuentra aqui:

pawn Код:
new JoinPed[18][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278}
};
En la lнnea del ultimo "};"
Y no consigo quitar el error q.q
He pensado que alomejor podria intervenir en el error lo siguiente:


pawn Код:
case 1: //Police Force
                {
                    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[0][0]; }
                    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[1][0]; }
                    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[2][0]; }
                    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[3][0]; }
                    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[4][0]; }
                    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[5][0]; }
                    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = JoinPed[6][0]; }
                    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, JoinPed[7][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = JoinPed[7][0]; }
                    else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, JoinPed[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = JoinPed[8][0]; }
                    else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, JoinPed[9][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = JoinPed[9][0]; }
                    else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, JoinPed[10][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[10][0]; }
                }
                case 2: //Fire&Ambulance
                {
                    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[11][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[11][0]; }
                    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[12][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[12][0]; }
                    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[13][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[13][0]; }
                    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[14][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[14][0]; }
                    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[15][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[15][0]; }
                    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[16][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[16][0]; }
                    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[17][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[17][0]; }

Pero no lo creo, no se, podrian ayudarme porfavor!?
Desde ya gracias y saludos!
Reply
#2

Hola NO amigo de ****. (Ten la decencia de modificar bien el mensaje).

їEstбs creando una matriz de 18 filas y 1 columna? Eso se llama vector.

pawn Код:
new JoinPed[18] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278}
};
Reply
#3

Oops, Fail, ya estб editado..
=======*========
Bueno, relacionado al tema, ya lo hemos solucionado, gracias de todas formas!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)