Posts: 2,593
Threads: 34
Joined: Dec 2007
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
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
No it will not write in cars.cfg you have to made It yourself