Hallo brauche hilfe kriege immer diese warnigs
D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(281) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(308) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\Dokumente und Einstellungen\Oli\Desktop\Sa-ProjectV1.0.pwn(349) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
forward LoadHouseCar();
public LoadHouseCar()
{
new arrCoords[7][64];
new strFromFile2[256];
new File: file = fopen("HouseCar.cfg", io_read);
if (file)
{
new idx;
zeile 281 while (idx < sizeof(CarInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
CarInfo[idx][cAutox] = floatstr(arrCoords[0]);
CarInfo[idx][cAutoy] = floatstr(arrCoords[1]);
CarInfo[idx][cAutoz] = floatstr(arrCoords[2]);
CarInfo[idx][cAutoza] = floatstr(arrCoords[3]);
CarInfo[idx][cVec] = strval(arrCoords[4]);
if(CarInfo[idx][cVec] == 457)
{
CarInfo[idx][cVec] = 411;
}
CarInfo[idx][cVcol1] = strval(arrCoords[5]);
CarInfo[idx][cVcol2] = strval(arrCoords[6]);
//printf("HouseInfo:%d Owner:%s hTakings %d hVec %d",idx,HouseInfo[idx][hOwner],HouseInfo[idx][hTakings],HouseInfo[idx][hVec]);
idx++;
}
fclose(file);
}
return 1;
}
public OnPropUpdate()
{
new idx;
new File: file2;
zeile 308 while (idx < sizeof(CarInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%f,%f,%f,%f,%f,%f,%d\n",
CarInfo[idx][cAutox],
CarInfo[idx][cAutoy],
CarInfo[idx][cAutoz],
CarInfo[idx][cAutoza],
CarInfo[idx][cVec],
CarInfo[idx][cVcol1],
CarInfo[idx][cVcol2]);
if(idx == 0)
{
file2 = fopen("HouseCar.cfg", io_write);
}
else
{
file2 = fopen("HouseCar.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
zeile 349 for(new h = 0; h < sizeof(CarInfo); h++)
{
AddStaticVehicleEx(CarInfo[h][cVec], CarInfo[h][cAutox], CarInfo[h][cAutoy], CarInfo[h][cAutoz], CarInfo[h][cAutoza], CarInfo[h][cVcol1], CarInfo[h][cVcol2], 60000);
}