10.03.2017, 09:13
(
Последний раз редактировалось astanalol; 11.03.2017 в 01:51.
)
Never Mind Removed
if(!vfile) return printf("File did not open");
SaveVehicles() { new filestring[125]; new File: vfile = fopen("vehicles.txt", io_write); if(!vfile) return printf("File did not open"); for(new vehicleid = 1;vehicleid<MAX_VEH;vehicleid++) { if(cInfo[vehicleid][Car1Model] != 0) { format(filestring, sizeof(filestring), "%i,%f\n",cInfo[vehicleid][Car1Model],cInfo[vehicleid][CarX1]); fwrite(vfile, filestring); } } fclose(vfile); return 1; }