Error 052
#1

Код:
C:\Users\Danny\Desktop\Server\gamemodes\larp.pwn(3101) : error 052: multi-dimensional arrays must be fully initialized
pawn Код:
new JoinPed[69][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{286},//FBI/ATF
{164},
{163},
{287},//NATIONAL_GUARD
{285},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278},
{279},
{292},//SURENOS
{114},
{115},
{175},
{174},
{116},
{173},
{176},
{124},//Signatra
{125},
{126},
{111},
{123},
{186},
{228},
{249},//HITMANS
{68},
{72},
{121},
{295},
{148},//NEWS_REPORTERS
{188},
{187},
{255},//TAXI_CAB_COMPANY
{253},
{19},//Signatra
{22},
{22},
{144},
{170},
{180},
{296},//Ballas
{55},
{112},
{127},
{43},
{46},
{271},//Grove Street
{156},
{176},
{177},
{184}
};
Reply
#2

Help
Reply
#3

new JoinPed[] = {
Reply
#4

It's 65 not 69, recount it.
Reply
#5

pawn Код:
C:\Users\Danny\Desktop\Server\gamemodes\larp.pwn(3036) : error 008: must be a constant expression; assumed zero
C:\Users\Danny\Desktop\Server\gamemodes\larp.pwn(35174) : warning 217: loose indentation
C:\Users\Danny\Desktop\Server\gamemodes\larp.pwn(35185) : warning 217: loose indentation
C:\Users\Danny\Desktop\Server\gamemodes\larp.pwn(73863) : error 001: expected token: ",", but found "["
C:\Users\Danny\Desktop\Server\gamemodes\larp.pwn(73863) : error 029: invalid expression, assumed zero
C:\Users\Danny\Desktop\Server\gamemodes\larp.pwn(73863) : warning 215: expression has no effect
C:\Users\Danny\Desktop\Server\gamemodes\larp.pwn(73863) : error 001: expected token: ";", but found "]"
C:\Users\Danny\Desktop\Server\gamemodes\larp.pwn(73863) : fatal error 107: too many error messages on one line
pawn Код:
case 1:
                {
                    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]; }
                }
Reply
#6

Quote:
Originally Posted by WackoX
Посмотреть сообщение
It's 65 not 69, recount it.
I cant believe you spent the time to count the elements...lol
Reply
#7

pawn Код:
new JoinPed[65] = {
280,//POLICE_FORCE
281,
282,
283,
284,
285,
288,
71,
166,
295,
148,
286,//FBI/ATF
164,
163,
287,//NATIONAL_GUARD
285,
70,//FIRE/AMBULANCE
274,
275,
276,
277,
278,
279,
292,//SURENOS
114,
115,
175,
174,
116,
173,
176,
124,//Signatra
125,
126,
111,
123,
186,
228,
249,//HITMANS
68,
72,
121,
295,
148,//NEWS_REPORTERS
188,
187,
255,//TAXI_CAB_COMPANY
253,
19,//Signatra
22,
22,
144,
170,
180,
296,//Ballas
55,
112,
127,
43,
46,
271,//Grove Street
156,
176,
177,
184
};
pawn Код:
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[0]; }
else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[1]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[1]; }
else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[2]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[2]; }
else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[3]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[3]; }
else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[4]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[4]; }
else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[5]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[5]; }
else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[6]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = JoinPed[6]; }
else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, JoinPed[7]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = JoinPed[7]; }
else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, JoinPed[8]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = JoinPed[8]; }
else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, JoinPed[9]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = JoinPed[9]; }
else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, JoinPed[10]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[10]; }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)