Array must be indexed error, Help! Please!
#1

Hi, I got those errors, Please help me to fix them!
Код HTML:
(82) : error 033: array must be indexed (variable "Zone")
(83) : error 033: array must be indexed (variable "Zone")
(265) : error 033: array must be indexed (variable "Zone")
(267) : error 033: array must be indexed (variable "Zone")
(267) : warning 215: expression has no effect
(267) : error 001: expected token: ";", but found "]"
(267) : error 029: invalid expression, assumed zero
(267) : fatal error 107: too many error messages on one line
My PAWNO code:
pawn Код:
..... the includes all defines
new CP[30];
new Zone[30];
OnGameModeInit()

(82) CP[Zone] = CreateDynamicCP(1195.3125, -1863.28125, 1757.8125, -1154.296875);//It won't give error I have the new!
(83)Zone[Zone] = GangZoneCreate(1195.3125, -1863.28125, 1757.8125, -1154.296875);
return 1;
...............
.............
.......
.........

Line: (265) if(checkpointid == CP[Zone])
(267)if(tCheck[Zone] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
Please help me!
Reply
#2

i have no experiance with that but try
pawn Код:
#define MAX_ZONES // the amount you want
new Zone[MAX_ZONES];
insted of
pawn Код:
new Zone[30];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)