09.09.2009, 15:19
This is just an example:
pawn Код:
new Float:x_pos, Float:y_pos, Float:z_pos, string[128];
for(new v = 0; v < _YOUR_MAX_VEHICLES_DEFINE_; v++)
{
format(string, sizeof(string), "car%d.ini", v);
if(!dini_Exists(string))
{
GetVehiclePos(v, x_pos, y_pos, z_pos);
dini_Create(string);
dini_FloatSet(string, "vehX", x_pos);
dini_FloatSet(string, "vehY", y_pos);
dini_FloatSet(string, "vehZ", z_pos);
}
else
{
GetVehiclePos(v, x_pos, y_pos, z_pos);
dini_FloatSet(string, "vehX", x_pos);
dini_FloatSet(string, "vehY", y_pos);
dini_FloatSet(string, "vehZ", z_pos);
}
}