C:\Documents and Settings\зрп ойоеп\щемзп дтбегд\зрп\samp\gamemodes\gf.pwn(26247) : error 032: array index out of bounds (variable "JoinPed") C:\Documents and Settings\зрп ойоеп\щемзп дтбегд\зрп\samp\gamemodes\gf.pwn(26247) : error 032: array index out of bounds (variable "JoinPed")
case 15: //FireMan { if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[62][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[62][0]; } else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[63][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[63][0]; } else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[64][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[64][0]; } }
new JoinPed[64][1] = { {280},//POLICE_FORCE {281}, {282}, {283}, {284}, {285}, {288}, {71}, {166}, {295}, {148}, {286},//FBI/ATF {164}, {163}, {287},//NATIONAL_GUARD {285}, {70},//AMBULANCE {274}, {275}, {276}, {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 {0},//GROVE {105}, {106}, {107}, {269}, {271}, {115},//Aztecas {114}, {116}, {102},//Ballas {103}, {104}, {277},//FireMan {278}, {279} };
Originally Posted by 0rb
Just leave the size blank, and also, why a second dimension of size 1 totally useless lol
pawn Код:
|
new JoinPed[65][1] = {
new JoinPed[66][1] = {
case 15: //FireMan { if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[62][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[62][0]; } else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[63][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[63][0]; } else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[64][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[64][0]; } }