Quote:
Originally Posted by Jefff
pawn Код:
stock SaveAllCars() { new File:F, str[128], Float:P[4], Model;
F = fopen("cars.cfg", io_write); for(new d = 1; d < MAX_VEHICLES; d++) { if((Model = GetVehicleModel(d))) { GetVehiclePos(d,P[0],P[1],P[2]); GetVehicleZAngle(d,P[3]); format(str,128,"%d,%.4f,%.4f,%.4f,%.4f\r\n",Model,P[0],P[1],P[2],P[3]); fwrite(F,str); } } fclose(F); return print("All Vehicles saved !"); }
In OnGameModeExit
|
very thanks ! it work ! the REP i your
but i have another question
if when the car have DestroyVehicle
it will be write in to the cars.cfg?