Hallo,
Ich versuche gerade etwas und da bekomme ich immer 2 errors:
error 033: array must be indexed (variable "string2")
error 033: array must be indexed (variable "string2")
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
	
	Und das is mein code:
new ename[24];
	new string[256];
	new string2[256];
	new vehicleid = GetPlayerVehicleID(i);
	GetPlayerName(i, ename, sizeof(ename));
	format(string, 255, "/keys/%s.%d.key", ename, vehicleid);
	format(string2, 255, "%s",ename);
if(CarInfo[vehicleid][carsowner] != string2)
	{
               	SetVehicleParamsForPlayer(vehicleid, i, 0, 1);
               	CarInfo[vehicleid][carslocked] = 1;
               	RemovePlayerFromVehicle(i);
	}
	if(CarInfo[vehicleid][carsowner] == string2)
	{
              	SetVehicleParamsForPlayer(vehicleid, i, 0, 0);
              	CarInfo[vehicleid][carslocked] = 0;
	}
Bei if(CarInfo[vehicleid][carsowner] != string2) und bei if(CarInfo[vehicleid][carsowner] == string2) kommen die errors. Kann mir jemand helfen?