C:\Users\Idan\Desktop\Server\gamemodes\LVRP.pwn(1358) : error 052: multi-dimensional arrays must be fully initialized
new JoinPed[65][1] = { {280},//POLICE_FORCE {281}, {282}, {283}, {284}, {285}, {288}, {71}, {166}, {295}, {148}, {286},//FBI/ATF {166}, {165}, {287},//NATIONAL_GUARD {285}, {70},//FIRE/AMBULANCE {274}, {275}, {276}, {277}, {278}, {279}, {258},//LA_COSA_NOSTRA {127}, {126}, {125}, {124}, {113}, {111}, {98}, {120},//YAKUZA {121}, {122}, {123}, {169}, {186}, {228}, {127},//HITMANS {165}, {186}, {93}, {141}, {148},//NEWS_REPORTERS {188}, {187}, {255},//TAXI_CAB_COMPANY {253}, {59},//DRIVING/FLYING_SCHOOL {60},//DRIVING/FLYING_SCHOOL {76},//DRIVING/FLYING_SCHOOL {150},//DRIVING/FLYING_SCHOOL {108},//Vagos {109},//Vagos {272},//Russian Mafia {112},//Russian Mafia {121},//Russian Mafia {122},//Russian Mafia {114},//Los Aztecz {115},// Los Aztecz {116}//Los Aztecz };
1358 : };
new JoinPed[61][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{286},//FBI/ATF
{166},
{165},
{287},//NATIONAL_GUARD
{285},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278},
{279},
{258},//LA_COSA_NOSTRA
{127},
{126},
{125},
{124},
{113},
{111},
{98},
{120},//YAKUZA
{121},
{122},
{123},
{169},
{186},
{228},
{127},//HITMANS
{165},
{186},
{93},
{141},
{148},//NEWS_REPORTERS
{188},
{187},
{255},//TAXI_CAB_COMPANY
{253},
{59},//DRIVING/FLYING_SCHOOL
{60},//DRIVING/FLYING_SCHOOL
{76},//DRIVING/FLYING_SCHOOL
{150},//DRIVING/FLYING_SCHOOL
{108},//Vagos
{109},//Vagos
{272},//Russian Mafia
{112},//Russian Mafia
{121},//Russian Mafia
{122},//Russian Mafia
{114},//Los Aztecz
{115},// Los Aztecz
{116}//Los Aztecz
};
new JoinPed[61]={
1,
2,
3,
4
};
if(GetPlayerSkin(playerid)==JoinPed[2][0])
if(GetPlayerSkin(playerid)==JoinPed[2])
C:\Users\Idan\Desktop\Server\gamemodes\LVRP.pwn(28967) : error 032: array index out of bounds (variable "JoinPed") C:\Users\Idan\Desktop\Server\gamemodes\LVRP.pwn(28967) : error 032: array index out of bounds (variable "JoinPed")
case 14: //Los Aztecz Gang { if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[59][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[59][0]; } else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[60][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[60][0]; } else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[61][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[61][0]; } }
else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[61][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[61][0]; }
[0]
Originally Posted by IdanN
Код:
else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[61][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[61][0]; } |
JoinPed[60][0]