Vehicle Sys..
#2

Well i noticed that you using dini_Int for Float

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;
}
Reply


Messages In This Thread
Vehicle Sys.. - by Luis- - 30.01.2011, 23:09
Re: Vehicle Sys.. - by DRIFT_HUNTER - 31.01.2011, 00:08

Forum Jump:


Users browsing this thread: 1 Guest(s)