29.05.2012, 11:21
Thank you so much , but now I have another warning
(1662) : warning 235: public function lacks forward declaration (symbol "SaveCars")
Line :
Line 1662 start with public
(1662) : warning 235: public function lacks forward declaration (symbol "SaveCars")
Line :
Код:
public SaveCars() { new idx; new File: file2; while (idx < sizeof(CarInfo)) { new coordsstring[256]; format(coordsstring, sizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%s,%d,%d\n", CarInfo[idx][cModel], CarInfo[idx][cLocationx], CarInfo[idx][cLocationy], CarInfo[idx][cLocationz], CarInfo[idx][cAngle], CarInfo[idx][cColorOne], CarInfo[idx][cColorTwo], CarInfo[idx][cOwner], CarInfo[idx][cDescription], CarInfo[idx][cValue], CarInfo[idx][cLicense], CarInfo[idx][cOwned], CarInfo[idx][cLock], CarInfo[idx][cComponent0], CarInfo[idx][cComponent1], CarInfo[idx][cComponent2], CarInfo[idx][cComponent3], CarInfo[idx][cComponent4], CarInfo[idx][cComponent5], CarInfo[idx][cComponent6], CarInfo[idx][cComponent7], CarInfo[idx][cComponent8], CarInfo[idx][cComponent9], CarInfo[idx][cComponent10], CarInfo[idx][cComponent11], CarInfo[idx][cComponent12], CarInfo[idx][cComponent13], CarInfo[idx][cPaintjob]); if(idx == PersonalCarID) { file2 = fopen("cfg/cars.cfg", io_write); } else { file2 = fopen("cfg/cars.cfg", io_append); } fwrite(file2, coordsstring); idx++; fclose(file2); } return 1; }