Hallo,
Wie könnte ich meine Errors beheben, ich finde den fehler nicht.
C:\Users\***\Desktop\Selfmade\*.pwn(242) : warning 213: tag mismatch
C:\Users\***\Desktop\Selfmade\*.pwn(242) : error 032: array index out of bounds (variable "Autohaus")
for(new i = 0; i < sizeof Autohaus; i++)
{
---->CreatePickup(1239,1,Autohaus[i][PosX],Autohaus[i][PosY],Autohaus[i][PosZ],0);
}
C:\Users\***\Desktop\Selfmade\*.pwn(290) : error 033: array must be indexed (variable "AutosZumVerkauf")
---->for(new i=0; i<AutosZumVerkauf; i++)
{
DestroyVehicle(kaufauto[i]);
}
C:\Users\***\Desktop\Selfmade\*.pwn(344) : warning 213: tag mismatch
C:\Users\***\Desktop\Selfmade\*.pwn(344) : warning 215: expression has no effect
C:\Users\***\Desktop\Selfmade\*.pwn(344) : error 001: expected token: ";", but found "["
C:\Users\***\Desktop\Selfmade\*.pwn(344) : error 029: invalid expression, assumed zero
C:\Users\***\Desktop\Selfmade\*.pwn(344) : warning 215: expression has no effect
C:\Users\***\Desktop\Selfmade\*.pwn(344) : error 001: expected token: ";", but found "]"
C:\Users\***\Desktop\Selfmade\*.pwn(344) : fatal error 107: too many error messages on one line
for(new i= 0; i < 3; i++)
{
new Autodatei[80];
format(Autodatei,sizeof(Autodatei),"/Autos/%sAuto&d.ini",SpielerName(playerid),i);
if(dini_Exists(Autodatei))
{
---->Autos[playerid][i][modelid] = dini_Int(Autodatei,"modelid");
Autos[playerid][i][Farbe1] = dini_Int(Autodatei,"Farbe1");
Autos[playerid][i][Farbe2] = dini_Int(Autodatei,"Farbe2");
Autos[playerid][i][HP] = dini_Int(Autodatei,"HP");
Autos[playerid][i][Paintjob] = dini_Int(Autodatei,"Paintjob");
Autos[playerid][i][Nummernschild] = dini_Int(Autodatei,"Nummernschild");
Autos[playerid][i][PosX] = dini_Int(Autodatei,"PosX");
Autos[playerid][i][PosY] = dini_Int(Autodatei,"PosY");
Autos[playerid][i][PosZ] = dini_Int(Autodatei,"PosZ");
Autos[playerid][i][PosA] = dini_Int(Autodatei,"PosA");
Autos[playerid][i][Spoiler] = dini_Int(Autodatei,"Spoiler");
Autos[playerid][i][Wheels] = dini_Int(Autodatei,"Wheels");
Autos[playerid][i][Nitro] = dini_Int(Autodatei,"Nitro");
Autos[playerid][i][Stereo] = dini_Int(Autodatei,"Stereo");
Autos[playerid][i][Hydraulics] = dini_Int(Autodatei,"Hydraulics");
Autos[playerid][i][FrontBumber] = dini_Int(Autodatei,"FrontBumber");
Autos[playerid][i][RearBumber] = dini_Int(Autodatei,"RearBumber");
Autos[playerid][i][VentLeft] = dini_Int(Autodatei,"VentLeft");
Autos[playerid][i][VentRight] = dini_Int(Autodatei,"VentRight");
Autos[playerid][i][Roof] = dini_Int(Autodatei,"Roof");
Autos[playerid][i][Hood] = dini_Int(Autodatei,"Hood");
Autos[playerid][i][Sideskirt] = dini_Int(Autodatei,"Sideskirt");
Autos[playerid][i][Lamps] = dini_Int(Autodatei,"Lamps");
Autos[playerid][i][Exhaust] = dini_Int(Autodatei,"Exhaust");
Spielercar[playerid][i] = CreateVehicle(Autos[playerid][i][modelid],Autos[playerid][i][PosX],Autos[playerid][i][PosY],Autos[playerid][i][PosZ],Autos[playerid][i][PosA],Autos[playerid][i][Farbe1],Autos[playerid][i][Farbe2]);
SetVehicleNumerPlate(Spielercar[playerid][i].dini_Int(Autodatei,"Nummernschild"));
SetVehicleParamsForPlayer(Spielercar[playerid][i],playerid,0,0);
if(Autos[playerid][i][Paintjob] > 0)
{
ChangeVehiclePaintjob(Spielercar[playerid][i][Paintjob]);
}
if(Autos[playerid][i][Spoiler] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Spoiler]);
}
if(Autos[playerid][i][Hood] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Hood]);
}
if(Autos[playerid][i][Roof] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Roof]);
}
if(Autos[playerid][i][Sideskirt] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Sideskirt]);
}
if(Autos[playerid][i][Lamps] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Lamps]);
}
if(Autos[playerid][i][Nitro] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Nitro]);
}
if(Autos[playerid][i][Wheels] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Wheels]);
}
if(Autos[playerid][i][Stereo] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Stereo]);
}
if(Autos[playerid][i][Exhaust] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Exhaust]);
}
if(Autos[playerid][i][Hydraulics] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Hydraulics]);
}
}
}
MFG Martinez