error 028: invalid subscript (not an array or too many subscripts): "carData"
#1

I have this errors, i want when player join in car to list player name of owner and name of car. Sorry for my bad English.



Errors:
Код:
(19812) : error 028: invalid subscript (not an array or too many subscripts): "carData"
(19812) : error 001: expected token: ";", but found "]"
(19812) : error 029: invalid expression, assumed zero
(19812) : fatal error 107: too many error messages on one line
Enum carData:
Код:
enum carData {
	carID,
	carExists,
	carModel,
	carOwner,
	Float:carPos[4],
	carColor1,
	carColor2,
	carPaintjob,
	carLocked,
	carMods[14],
	carImpounded,
	carImpoundPrice,
	carFaction,
	carWeapons[5],
	carAmmo[5],
	carVehicle
};
Script (OnPlayerStateChange):
Код:
if(Car_IsOwner(vehicleid))
	{
      new vehicle[24];
	  new string[32];
	  GetVehicleModel(vehicleid, vehicle, sizeof(vehicle));
      format(string,sizeof(string),"You enter in car %s (%d)   Car Owner: %s",vehicle, vehicleid, carData[vehicleid][carOwner]);
      SCM(playerid, COLOR_YELLOW, string);
	}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)