31.01.2011, 00:08
Well i noticed that you using dini_Int for Float
Try these
Try these
pawn Код:
forward LoadVehicle();
public LoadVehicle()
{
new file[128], Model, Veh, Float:Pos[4];
for(new i = 1; i<=MAX_CARS; i++)
{
format(file, sizeof(file), "Vehicles/%d.ini", i);
if(dini_Exists(file))
{
VehicleInfo[i][vModel] = dini_Int(file, "Model");
VehicleInfo[i][vX] = dini_Float(file, "VehX");
VehicleInfo[i][vY] = dini_Float(file, "VehY");
VehicleInfo[i][vZ] = dini_Float(file, "VehZ");
VehicleInfo[i][vA] = dini_Float(file, "VehA"
CreateVehicle(VehicleInfo[i][vModel], VehicleInfo[i][vX], VehicleInfo[i][vY], VehicleInfo[i][vZ], VehicleInfo[i][vA], 1, 1, false);
}
}
print("Debug Message: Loading Vehicles is Good!");
return 1;
}