Hey leute, hab paar errors -.- wieso?
error 017: undefined symbol "carX"
warning 213: tag mismatch
error 017: undefined symbol "carY"
warning 213: tag mismatch
error 017: undefined symbol "carZ"
fatal error 107: too many error messages on one line
public AutohausConnect(playerid)
{
new i;
new dateiname[MAX_PLAYER_NAME+4];
new playername[MAX_PLAYER_NAME];
Carlist[playerid][Typ]=-1; Carlist[playerid][carX]=0.0; Carlist[playerid][carY]=0.0; Carlist[playerid][carZ]=0.0;
Carlist[playerid][Rotation]=0.0; Carlist[playerid][Status]=0; Carlist[playerid][Lock]=0; Carlist[playerid][Carid]=-1;
Carlist[playerid][Farbe1]=-1; Carlist[playerid][Farbe2]=-1; Carlist[playerid][modi1]=-1; Carlist[playerid][modi2]=-1;
Carlist[playerid][modi3]=-1; Carlist[playerid][modi4]=-1; Carlist[playerid][modi5]=-1; Carlist[playerid][modi6]=-1;
Carlist[playerid][modi7]=-1; Carlist[playerid][modi8]=-1; Carlist[playerid][modi9]=-1; Carlist[playerid][modi10]=-1;
Carlist[playerid][modi11]=-1; Carlist[playerid][modi12]=-1; Carlist[playerid][modi13]=-1; Carlist[playerid][modi14]=-1;
Carlist[playerid][modi15]=-1; Carlist[playerid][modi16]=-1; Carlist[playerid][modi17]=-1; Carlist[playerid][Paintjob]=-1;
Spectating[playerid][0]=-1;
GetPlayerName(playerid, playername, sizeof(playername));
format(dateiname, sizeof(dateiname), "%s.car", playername);
if (fexist(dateiname))
{
new File: CarFile = fopen(dateiname, io_read);
if ( CarFile )
{
new key[ 256 ];
new Data[ 256 ];
while ( fread( CarFile , Data , sizeof( Data ) ) )
{
key = ini_GetKey(Data);
if(strcmp(key,"AH_Typ",true)==0) { Carlist[playerid][Typ]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_X",true)==0) { Carlist[playerid][carX]=floatstr(ini_GetValue(Data)); }
else if(strcmp(key,"AH_Y",true)==0) { Carlist[playerid][carY]=floatstr(ini_GetValue(Data)); }
else if(strcmp(key,"AH_Z",true)==0) { Carlist[playerid][carZ]=floatstr(ini_GetValue(Data)); }
else if(strcmp(key,"AH_Rot",true)==0) { Carlist[playerid][Rotation]=floatstr(ini_GetValue(Data)); }
else if(strcmp(key,"AH_Status",true)==0) { Carlist[playerid][Status]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_Lock",true)==0) { Carlist[playerid][Lock]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_Paintjob",true)==0) { Carlist[playerid][Paintjob]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_Farbe1",true)==0) { Carlist[playerid][Farbe1]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_Farbe2",true)==0) { Carlist[playerid][Farbe2]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi1",true)==0) { Carlist[playerid][modi1]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi2",true)==0) { Carlist[playerid][modi2]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi3",true)==0) { Carlist[playerid][modi3]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi4",true)==0) { Carlist[playerid][modi4]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi5",true)==0) { Carlist[playerid][modi5]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi6",true)==0) { Carlist[playerid][modi6]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi7",true)==0) { Carlist[playerid][modi7]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi8",true)==0) { Carlist[playerid][modi8]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi9",true)==0) { Carlist[playerid][modi9]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi10",true)==0) { Carlist[playerid][modi10]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi11",true)==0) { Carlist[playerid][modi11]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi12",true)==0) { Carlist[playerid][modi12]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi13",true)==0) { Carlist[playerid][modi13]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi14",true)==0) { Carlist[playerid][modi14]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi15",true)==0) { Carlist[playerid][modi15]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi16",true)==0) { Carlist[playerid][modi16]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_modi17",true)==0) { Carlist[playerid][modi17]=strval(ini_GetValue(Data)); }
}
}
fclose(CarFile);
if(Carlist[playerid][Typ]!=-1 && Carlist[playerid][Status]==1)
{
Carlist[playerid][Carid]=CreateTunedCar(playerid);
}
}
for(i=0; i<MAX_PLAYERS; i++)
{
if(Carlist[i][Carid]!=-1 && Carlist[i][Lock]==1 && i!=playerid) { SetVehicleParamsForPlayer(Carlist[i][Carid],playerid,0,1); }
if(Spectating[i][0]!=-1) { SetVehicleParamsForPlayer(Kaufliste[Spectating[i][0]][Carid],playerid,0,1); }
}
return 1;
}