SOLVED [Array must be indexed] Variable Carid[MAX_PLAYERS]...
#1

Hi, I've got a little problem.

I've got these 4 errors:
Код:
C:\Documents and Settings\Admin\Bureau\Advanced Engine System\filterscripts\asys.pwn(55) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Admin\Bureau\Advanced Engine System\filterscripts\asys.pwn(91) : error 033: array must be indexed (variable "Carid")
C:\Documents and Settings\Admin\Bureau\Advanced Engine System\filterscripts\asys.pwn(523) : error 033: array must be indexed (variable "Carid")
C:\Documents and Settings\Admin\Bureau\Advanced Engine System\filterscripts\asys.pwn(818) : error 033: array must be indexed (variable "Carid")
Variable:
pawn Код:
new Carid[MAX_VEHICLES] = 0;
Line 55 (Here, I want to put back the player in the car id printed into variable "Carid")
pawn Код:
PutPlayerInVehicle(playerid, Carid, 0);
Line 91 (Here I want to set the "Carid" variable for the result of "VehicleIdValue")
pawn Код:
Carid = VehicleIdValue;
VehicleIdValue is:
pawn Код:
new VehicleIdValue = GetPlayerVehicleID(playerid);
Line 817:
pawn Код:
if(VehicleStarted[Carid] == 0 && Vehiclemodel!= 510 && Vehiclemodel != 509 && Vehiclemodel != 481)
"VehicleStarted" variable:
pawn Код:
new VehicleStarted[MAX_VEHICLES] = 0;
Thank you for any help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)