23.12.2011, 15:40
Замени свой LoadAuto на:
Если не поможет замени строку
на
Проверь есть ли у тебя
в OnGameModeInit
Больше не знаю как помочь.
PHP Code:
public LoadAuto()
{
new arrCoords[26][64];
new strFromFile2[256];
new File: file = fopen("auto.cfg", io_read);
if (file)
{
new idx;
while(idx < sizeof(AutoInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
AutoInfo[idx][aStats] = strval(arrCoords[0]);
AutoInfo[idx][aModel] = strval(arrCoords[1]);
AutoInfo[idx][aAutoX] = floatstr(arrCoords[2]);
AutoInfo[idx][aAutoY] = floatstr(arrCoords[3]);
AutoInfo[idx][aAutoZ] = floatstr(arrCoords[4]);
AutoInfo[idx][aAutoAngle] = floatstr(arrCoords[5]);
AutoInfo[idx][aColor1] = strval(arrCoords[6]);
AutoInfo[idx][aColor2] = strval(arrCoords[7]);
strmid(AutoInfo[idx][aOwner], arrCoords[8], 0, strlen(arrCoords[8]), 255);
AutoInfo[idx][aPrice] = strval(arrCoords[9]);
AutoInfo[idx][aKey] = strval(arrCoords[10]);
AutoInfo[idx][a0] = strval(arrCoords[11]);
AutoInfo[idx][a1] = strval(arrCoords[12]);
AutoInfo[idx][a2] = strval(arrCoords[13]);
AutoInfo[idx][a3] = strval(arrCoords[14]);
AutoInfo[idx][a4] = strval(arrCoords[15]);
AutoInfo[idx][a5] = strval(arrCoords[16]);
AutoInfo[idx][a6] = strval(arrCoords[17]);
AutoInfo[idx][a7] = strval(arrCoords[18]);
AutoInfo[idx][a8] = strval(arrCoords[19]);
AutoInfo[idx][a9] = strval(arrCoords[20]);
AutoInfo[idx][a10] = strval(arrCoords[21]);
AutoInfo[idx][a11] = strval(arrCoords[22]);
AutoInfo[idx][a12] = strval(arrCoords[23]);
AutoInfo[idx][a13] = strval(arrCoords[24]);
AutoInfo[idx][aPaintJob] = strval(arrCoords[25]);
idx++;
}
fclose(file);
}
return 1;
}
PHP Code:
while(idx < sizeof(AutoInfo))
PHP Code:
while(idx < CAR_PROD)
PHP Code:
LoadAuto();
Больше не знаю как помочь.