18.08.2012, 21:50
(
Последний раз редактировалось Bu11Sh0t; 18.08.2012 в 21:52.
Причина: Falto informacion
)
pawn Код:
new Float:Pos[4], string[100], File:file = fopen("autos.txt", io_write);
if(file)
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
GetVehiclePos(i, Pos[0], Pos[1], Pos[2]);
GetVehicleZAngle(i, Pos[3]);
model = GetVehicleModel(i);
if(Pos[0] == 0 && Pos[1] == 0&& Pos[2] == 0) return 1;
format(string, sizeof(string), "%d|%f|%f|%f|%f\n", model, Pos[0], Pos[1], Pos[2], Pos[3]);
fwrite(file, string);
}
}