pawn Код:
forward LoadVehicles(playerid, string[]);
public LoadVehicles(playerid, string[])
{
new str[256];
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
format(str, sizeof(str), "SELECT * FROM vehicles WHERE `CarID` = '%s'", playername);
//format(file, sizeof(file), "Vehicles/Vehicles/%s.cfg", string);
if(strcmp(string, PlayerInfo[playerid][pVeh1], true) == 0) {
veh1[playerid] = CreateVehicle(dini_Int(file, "Model"), dini_Float(file, "ParkX"), dini_Float(file, "ParkY"), dini_Float(file, "ParkZ"), dini_Float(file, "ParkAngle"), dini_Int(file, "Color1"), dini_Int(file, "Color2"), 60000);
strmid(VehicleInfo[veh1[playerid]][vOwner], dini_Get(file, "Owner"), 0, strlen(dini_Get(file, "Owner")), 255);
strmid(VehicleInfo[veh1[playerid]][vDescription], dini_Get(file, "Description"), 0, strlen(dini_Get(file, "Description")), 255);
VehicleInfo[veh1[playerid]][vModel] = dini_Int(file, "Model");
VehicleInfo[veh1[playerid]][vX] = dini_Float(file, "ParkX");
VehicleInfo[veh1[playerid]][vY] = dini_Float(file, "ParkY");
VehicleInfo[veh1[playerid]][vZ] = dini_Float(file, "ParkZ");
VehicleInfo[veh1[playerid]][vAngle] = dini_Float(file, "ParkAngle");
VehicleInfo[veh1[playerid]][vColorOne] = dini_Int(file, "color1");
VehicleInfo[veh1[playerid]][vColorTwo] = dini_Int(file, "color2");
VehicleInfo[veh1[playerid]][vOwned] = dini_Int(file, "Owned");
VehicleInfo[veh1[playerid]][vLock] = dini_Int(file, "Lock");
VehicleInfo[veh1[playerid]][vLockBuyed] = dini_Int(file, "LockBuyed");
VehicleInfo[veh1[playerid]][vAlarm] = dini_Int(file, "Alarm");
VehicleInfo[veh1[playerid]][vKey] = dini_Int(file, "Key");
VehicleInfo[veh1[playerid]][vComponent0]=dini_Int(file, "Component0");
VehicleInfo[veh1[playerid]][vComponent1]=dini_Int(file, "Component1");
VehicleInfo[veh1[playerid]][vComponent2]=dini_Int(file, "Component2");
VehicleInfo[veh1[playerid]][vComponent3]=dini_Int(file, "Component3");
VehicleInfo[veh1[playerid]][vComponent4]=dini_Int(file, "Component4");
VehicleInfo[veh1[playerid]][vComponent5]=dini_Int(file, "Component5");
VehicleInfo[veh1[playerid]][vComponent6]=dini_Int(file, "Component6");
VehicleInfo[veh1[playerid]][vComponent7]=dini_Int(file, "Component7");
VehicleInfo[veh1[playerid]][vComponent8]=dini_Int(file, "Component8");
VehicleInfo[veh1[playerid]][vComponent9]=dini_Int(file, "Component9");
VehicleInfo[veh1[playerid]][vComponent10]=dini_Int(file, "Component10");
VehicleInfo[veh1[playerid]][vComponent11]=dini_Int(file, "Component11");
VehicleInfo[veh1[playerid]][vComponent12]=dini_Int(file, "Component12");
VehicleInfo[veh1[playerid]][vComponent13]=dini_Int(file, "Component13");
VehicleInfo[veh1[playerid]][vPaintJob]=dini_Int(file, "PaintJob");
VehicleInfo[veh1[playerid]][vInsurances]=dini_Int(file, "Insurances");
LoadComp(veh1[playerid]);
IsOwned[veh1[playerid]] = 1;
new sb[256]; format(sb, sizeof(sb), "Your %s has spawned in the place where you have parked it.", VehicleNames[GetVehicleModel(veh1[playerid])-400]); SendClientMessage(playerid, COLOR_YELLOW, sb);
format(sb, sizeof(sb), "INFO: Model:[%s] |Owner:[%s] |Locked:[%d]", VehicleNames[GetVehicleModel(veh1[playerid])-400], VehicleInfo[veh1[playerid]][vOwner],
VehicleInfo[veh1[playerid]][vLock]);
SendClientMessage(playerid, COLOR_GREEN, sb);
if(VehicleInfo[veh1[playerid]][vLock] > 0) {
LockCar(veh1[playerid]);
return 1;
}
else UnLockCar(veh1[playerid]);
return 1;
}
else if(strcmp(string, PlayerInfo[playerid][pVeh2], true) == 0) {
veh2[playerid] = CreateVehicle(dini_Int(file, "Model"), dini_Float(file, "ParkX"), dini_Float(file, "ParkY"), dini_Float(file, "ParkZ"), dini_Float(file, "ParkAngle"), dini_Int(file, "Color1"), dini_Int(file, "Color2"), 60000);
strmid(VehicleInfo[veh2[playerid]][vOwner], dini_Get(file, "Owner"), 0, strlen(dini_Get(file, "Owner")), 255);
strmid(VehicleInfo[veh2[playerid]][vDescription], dini_Get(file, "Description"), 0, strlen(dini_Get(file, "Description")), 255);
VehicleInfo[veh2[playerid]][vModel] = dini_Int(file, "Model");
VehicleInfo[veh2[playerid]][vX] = dini_Float(file, "ParkX");
VehicleInfo[veh2[playerid]][vY] = dini_Float(file, "ParkY");
VehicleInfo[veh2[playerid]][vZ] = dini_Float(file, "ParkZ");
VehicleInfo[veh2[playerid]][vAngle] = dini_Float(file, "ParkAngle");
VehicleInfo[veh2[playerid]][vColorOne] = dini_Int(file, "color1");
VehicleInfo[veh2[playerid]][vColorTwo] = dini_Int(file, "color2");
VehicleInfo[veh2[playerid]][vOwned] = dini_Int(file, "Owned");
VehicleInfo[veh2[playerid]][vLock] = dini_Int(file, "Lock");
VehicleInfo[veh2[playerid]][vLockBuyed] = dini_Int(file, "LockBuyed");
VehicleInfo[veh2[playerid]][vAlarm] = dini_Int(file, "Alarm");
VehicleInfo[veh2[playerid]][vKey] = dini_Int(file, "Key");
VehicleInfo[veh2[playerid]][vComponent0]=dini_Int(file, "Component0");
VehicleInfo[veh2[playerid]][vComponent1]=dini_Int(file, "Component1");
VehicleInfo[veh2[playerid]][vComponent2]=dini_Int(file, "Component2");
VehicleInfo[veh2[playerid]][vComponent3]=dini_Int(file, "Component3");
VehicleInfo[veh2[playerid]][vComponent4]=dini_Int(file, "Component4");
VehicleInfo[veh2[playerid]][vComponent5]=dini_Int(file, "Component5");
VehicleInfo[veh2[playerid]][vComponent6]=dini_Int(file, "Component6");
VehicleInfo[veh2[playerid]][vComponent7]=dini_Int(file, "Component7");
VehicleInfo[veh2[playerid]][vComponent8]=dini_Int(file, "Component8");
VehicleInfo[veh2[playerid]][vComponent9]=dini_Int(file, "Component9");
VehicleInfo[veh2[playerid]][vComponent10]=dini_Int(file, "Component10");
VehicleInfo[veh2[playerid]][vComponent11]=dini_Int(file, "Component11");
VehicleInfo[veh2[playerid]][vComponent12]=dini_Int(file, "Component12");
VehicleInfo[veh2[playerid]][vComponent13]=dini_Int(file, "Component13");
VehicleInfo[veh2[playerid]][vPaintJob]=dini_Int(file, "PaintJob");
VehicleInfo[veh1[playerid]][vInsurances]=dini_Int(file, "Insurances");
LoadComp(veh2[playerid]);
IsOwned[veh2[playerid]] = 1;
new sb[256]; format(sb, sizeof(sb), "Your %s has spawned in the place where you have parked it.", VehicleNames[GetVehicleModel(veh2[playerid])-400]); SendClientMessage(playerid, COLOR_YELLOW, sb);
format(sb, sizeof(sb), "INFO: Model:[%s] |Owner:[%s] |LockLevel:[%d] |AlarmLevel:[%d]", VehicleNames[GetVehicleModel(veh2[playerid])-400], VehicleInfo[veh2[playerid]][vOwner],
VehicleInfo[veh2[playerid]][vLock], VehicleInfo[veh2[playerid]][vAlarm]);
SendClientMessage(playerid, COLOR_GREEN, sb);
if(VehicleInfo[veh2[playerid]][vLock] > 0) {
LockCar(veh2[playerid]);
return 1;
}
else UnLockCar(veh2[playerid]);
return 1;
}
else if(strcmp(string, PlayerInfo[playerid][pVeh3], true) == 0) {
veh3[playerid] = CreateVehicle(dini_Int(file, "Model"), dini_Float(file, "ParkX"), dini_Float(file, "ParkY"), dini_Float(file, "ParkZ"), dini_Float(file, "ParkAngle"), dini_Int(file, "Color1"), dini_Int(file, "Color2"), 60000);
strmid(VehicleInfo[veh3[playerid]][vOwner], dini_Get(file, "Owner"), 0, strlen(dini_Get(file, "Owner")), 255);
strmid(VehicleInfo[veh3[playerid]][vDescription], dini_Get(file, "Description"), 0, strlen(dini_Get(file, "Description")), 255);
VehicleInfo[veh3[playerid]][vModel] = dini_Int(file, "Model");
VehicleInfo[veh3[playerid]][vX] = dini_Float(file, "ParkX");
VehicleInfo[veh3[playerid]][vY] = dini_Float(file, "ParkY");
VehicleInfo[veh3[playerid]][vZ] = dini_Float(file, "ParkZ");
VehicleInfo[veh3[playerid]][vAngle] = dini_Float(file, "ParkAngle");
VehicleInfo[veh3[playerid]][vColorOne] = dini_Int(file, "color1");
VehicleInfo[veh3[playerid]][vColorTwo] = dini_Int(file, "color2");
VehicleInfo[veh3[playerid]][vOwned] = dini_Int(file, "Owned");
VehicleInfo[veh3[playerid]][vLock] = dini_Int(file, "Lock");
VehicleInfo[veh3[playerid]][vLockBuyed] = dini_Int(file, "LockBuyed");
VehicleInfo[veh3[playerid]][vAlarm] = dini_Int(file, "Alarm");
VehicleInfo[veh3[playerid]][vKey] = dini_Int(file, "Key");
VehicleInfo[veh3[playerid]][vComponent0]=dini_Int(file, "Component0");
VehicleInfo[veh3[playerid]][vComponent1]=dini_Int(file, "Component1");
VehicleInfo[veh3[playerid]][vComponent2]=dini_Int(file, "Component2");
VehicleInfo[veh3[playerid]][vComponent3]=dini_Int(file, "Component3");
VehicleInfo[veh3[playerid]][vComponent4]=dini_Int(file, "Component4");
VehicleInfo[veh3[playerid]][vComponent5]=dini_Int(file, "Component5");
VehicleInfo[veh3[playerid]][vComponent6]=dini_Int(file, "Component6");
VehicleInfo[veh3[playerid]][vComponent7]=dini_Int(file, "Component7");
VehicleInfo[veh3[playerid]][vComponent8]=dini_Int(file, "Component8");
VehicleInfo[veh3[playerid]][vComponent9]=dini_Int(file, "Component9");
VehicleInfo[veh3[playerid]][vComponent10]=dini_Int(file, "Component10");
VehicleInfo[veh3[playerid]][vComponent11]=dini_Int(file, "Component11");
VehicleInfo[veh3[playerid]][vComponent12]=dini_Int(file, "Component12");
VehicleInfo[veh3[playerid]][vComponent13]=dini_Int(file, "Component13");
VehicleInfo[veh3[playerid]][vPaintJob]=dini_Int(file, "PaintJob");
VehicleInfo[veh1[playerid]][vScratches]=dini_Int(file, "Scratches");
VehicleInfo[veh1[playerid]][vInsurances]=dini_Int(file, "Insurances");
LoadComp(veh3[playerid]);
IsOwned[veh3[playerid]] = 1;
new sb[256]; format(sb, sizeof(sb), "Your %s has spawned in the place where you have parked it.", VehicleNames[GetVehicleModel(veh3[playerid])-400]); SendClientMessage(playerid, COLOR_YELLOW, sb);
format(sb, sizeof(sb), "INFO: Model:[%s] |Owner:[%s] |LockLevel:[%d] |AlarmLevel:[%d]", VehicleNames[GetVehicleModel(veh3[playerid])-400], VehicleInfo[veh3[playerid]][vOwner],
VehicleInfo[veh3[playerid]][vLock], VehicleInfo[veh3[playerid]][vAlarm]);
SendClientMessage(playerid, COLOR_GREEN, sb);
if(VehicleInfo[veh3[playerid]][vLock] > 0) {
LockCar(veh3[playerid]);
return 1;
}
else UnLockCar(veh3[playerid]);
return 1;
}
else if(strcmp(string, PlayerInfo[playerid][pVeh4], true) == 0) {
veh4[playerid] = CreateVehicle(dini_Int(file, "Model"), dini_Float(file, "ParkX"), dini_Float(file, "ParkY"), dini_Float(file, "ParkZ"), dini_Float(file, "ParkAngle"), dini_Int(file, "Color1"), dini_Int(file, "Color2"), 60000);
strmid(VehicleInfo[veh4[playerid]][vOwner], dini_Get(file, "Owner"), 0, strlen(dini_Get(file, "Owner")), 255);
strmid(VehicleInfo[veh4[playerid]][vDescription], dini_Get(file, "Description"), 0, strlen(dini_Get(file, "Description")), 255);
VehicleInfo[veh4[playerid]][vModel] = dini_Int(file, "Model");
VehicleInfo[veh4[playerid]][vX] = dini_Float(file, "ParkX");
VehicleInfo[veh4[playerid]][vY] = dini_Float(file, "ParkY");
VehicleInfo[veh4[playerid]][vZ] = dini_Float(file, "ParkZ");
VehicleInfo[veh4[playerid]][vAngle] = dini_Float(file, "ParkAngle");
VehicleInfo[veh4[playerid]][vColorOne] = dini_Int(file, "color1");
VehicleInfo[veh4[playerid]][vColorTwo] = dini_Int(file, "color2");
VehicleInfo[veh4[playerid]][vOwned] = dini_Int(file, "Owned");
VehicleInfo[veh4[playerid]][vLock] = dini_Int(file, "Lock");
VehicleInfo[veh4[playerid]][vLockBuyed] = dini_Int(file, "LockBuyed");
VehicleInfo[veh4[playerid]][vAlarm] = dini_Int(file, "Alarm");
VehicleInfo[veh4[playerid]][vKey] = dini_Int(file, "Key");
VehicleInfo[veh4[playerid]][vComponent0]=dini_Int(file, "Component0");
VehicleInfo[veh4[playerid]][vComponent1]=dini_Int(file, "Component1");
VehicleInfo[veh4[playerid]][vComponent2]=dini_Int(file, "Component2");
VehicleInfo[veh4[playerid]][vComponent3]=dini_Int(file, "Component3");
VehicleInfo[veh4[playerid]][vComponent4]=dini_Int(file, "Component4");
VehicleInfo[veh4[playerid]][vComponent5]=dini_Int(file, "Component5");
VehicleInfo[veh4[playerid]][vComponent6]=dini_Int(file, "Component6");
VehicleInfo[veh4[playerid]][vComponent7]=dini_Int(file, "Component7");
VehicleInfo[veh4[playerid]][vComponent8]=dini_Int(file, "Component8");
VehicleInfo[veh4[playerid]][vComponent9]=dini_Int(file, "Component9");
VehicleInfo[veh4[playerid]][vComponent10]=dini_Int(file, "Component10");
VehicleInfo[veh4[playerid]][vComponent11]=dini_Int(file, "Component11");
VehicleInfo[veh4[playerid]][vComponent12]=dini_Int(file, "Component12");
VehicleInfo[veh4[playerid]][vComponent13]=dini_Int(file, "Component13");
VehicleInfo[veh4[playerid]][vPaintJob]=dini_Int(file, "PaintJob");
VehicleInfo[veh1[playerid]][vScratches]=dini_Int(file, "Scratches");
VehicleInfo[veh1[playerid]][vInsurances]=dini_Int(file, "Insurances");
LoadComp(veh4[playerid]);
IsOwned[veh4[playerid]] = 1;
new sb[256]; format(sb, sizeof(sb), "Your %s has spawned in the place where you have parked it.", VehicleNames[GetVehicleModel(veh4[playerid])-400]); SendClientMessage(playerid, COLOR_YELLOW, sb);
format(sb, sizeof(sb), "INFO: Model:[%s] |Owner:[%s] |LockLevel:[%d] |AlarmLevel:[%d]", VehicleNames[GetVehicleModel(veh2[playerid])-400], VehicleInfo[veh2[playerid]][vOwner],
VehicleInfo[veh4[playerid]][vLock], VehicleInfo[veh4[playerid]][vAlarm]);
SendClientMessage(playerid, COLOR_GREEN, sb);
if(VehicleInfo[veh4[playerid]][vLock] > 0) {
LockCar(veh4[playerid]);
return 1;
}
else UnLockCar(veh4[playerid]);
return 1;
}
else if(strcmp(string, PlayerInfo[playerid][pVeh5], true) == 0) {
veh5[playerid] = CreateVehicle(dini_Int(file, "Model"), dini_Float(file, "ParkX"), dini_Float(file, "ParkY"), dini_Float(file, "ParkZ"), dini_Float(file, "ParkAngle"), dini_Int(file, "Color1"), dini_Int(file, "Color2"), 60000);
strmid(VehicleInfo[veh5[playerid]][vOwner], dini_Get(file, "Owner"), 0, strlen(dini_Get(file, "Owner")), 255);
strmid(VehicleInfo[veh5[playerid]][vDescription], dini_Get(file, "Description"), 0, strlen(dini_Get(file, "Description")), 255);
VehicleInfo[veh5[playerid]][vModel] = dini_Int(file, "Model");
VehicleInfo[veh5[playerid]][vX] = dini_Float(file, "ParkX");
VehicleInfo[veh5[playerid]][vY] = dini_Float(file, "ParkY");
VehicleInfo[veh5[playerid]][vZ] = dini_Float(file, "ParkZ");
VehicleInfo[veh5[playerid]][vAngle] = dini_Float(file, "ParkAngle");
VehicleInfo[veh5[playerid]][vColorOne] = dini_Int(file, "color1");
VehicleInfo[veh5[playerid]][vColorTwo] = dini_Int(file, "color2");
VehicleInfo[veh5[playerid]][vOwned] = dini_Int(file, "Owned");
VehicleInfo[veh5[playerid]][vLock] = dini_Int(file, "Lock");
VehicleInfo[veh5[playerid]][vLockBuyed] = dini_Int(file, "LockBuyed");
VehicleInfo[veh5[playerid]][vAlarm] = dini_Int(file, "Alarm");
VehicleInfo[veh5[playerid]][vKey] = dini_Int(file, "Key");
VehicleInfo[veh5[playerid]][vComponent0]=dini_Int(file, "Component0");
VehicleInfo[veh5[playerid]][vComponent1]=dini_Int(file, "Component1");
VehicleInfo[veh5[playerid]][vComponent2]=dini_Int(file, "Component2");
VehicleInfo[veh5[playerid]][vComponent3]=dini_Int(file, "Component3");
VehicleInfo[veh5[playerid]][vComponent4]=dini_Int(file, "Component4");
VehicleInfo[veh5[playerid]][vComponent5]=dini_Int(file, "Component5");
VehicleInfo[veh5[playerid]][vComponent6]=dini_Int(file, "Component6");
VehicleInfo[veh5[playerid]][vComponent7]=dini_Int(file, "Component7");
VehicleInfo[veh5[playerid]][vComponent8]=dini_Int(file, "Component8");
VehicleInfo[veh5[playerid]][vComponent9]=dini_Int(file, "Component9");
VehicleInfo[veh5[playerid]][vComponent10]=dini_Int(file, "Component10");
VehicleInfo[veh5[playerid]][vComponent11]=dini_Int(file, "Component11");
VehicleInfo[veh5[playerid]][vComponent12]=dini_Int(file, "Component12");
VehicleInfo[veh5[playerid]][vComponent13]=dini_Int(file, "Component13");
VehicleInfo[veh5[playerid]][vPaintJob]=dini_Int(file, "PaintJob");
VehicleInfo[veh1[playerid]][vScratches]=dini_Int(file, "Scratches");
VehicleInfo[veh1[playerid]][vInsurances]=dini_Int(file, "Insurances");
LoadComp(veh5[playerid]);
IsOwned[veh5[playerid]] = 1;
new sb[256]; format(sb, sizeof(sb), "Your %s has spawned in the place where you have parked it.", VehicleNames[GetVehicleModel(veh5[playerid])-400]); SendClientMessage(playerid, COLOR_YELLOW, sb);
format(sb, sizeof(sb), "INFOS: Model:[%s] |Owner:[%s] |LockLevel:[%d] |AlarmLevel:[%d]", VehicleNames[GetVehicleModel(veh5[playerid])-400], VehicleInfo[veh5[playerid]][vOwner],
VehicleInfo[veh5[playerid]][vLock], VehicleInfo[veh5[playerid]][vAlarm]);
SendClientMessage(playerid, COLOR_GREEN, sb);
if(VehicleInfo[veh5[playerid]][vLock] > 0) {
LockCar(veh5[playerid]);
return 1;
}
else UnLockCar(veh5[playerid]);
return 1;
}
return 1;
}
pawn Код:
forward SaveVehicles(playerid, car);
public SaveVehicles(playerid, car)
{
new file[256];
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
format(file, sizeof(file), "Vehicles/Vehicles/%s.%s.cfg", plname, VehicleNames[GetVehicleModel(car)-400]);
if(dini_Exists(file)) {
dini_IntSet(file, "Model", VehicleInfo[car][vModel]);
dini_FloatSet(file, "ParkX", VehicleInfo[car][vX]);
dini_FloatSet(file, "ParkY", VehicleInfo[car][vY]);
dini_FloatSet(file, "ParkZ", VehicleInfo[car][vZ]);
dini_FloatSet(file, "ParkAngle", VehicleInfo[car][vAngle]);
dini_IntSet(file, "Color1", VehicleInfo[car][vColorOne]);
dini_IntSet(file, "Color2", VehicleInfo[car][vColorTwo]);
dini_Set(file, "Owner", VehicleInfo[car][vOwner]);
dini_Set(file, "Description", VehicleInfo[car][vDescription]);
dini_IntSet(file, "Owned", VehicleInfo[car][vOwned]);
dini_IntSet(file, "Lock", VehicleInfo[car][vLock]);
dini_IntSet(file, "LockBuyed", VehicleInfo[car][vLockBuyed]);
dini_IntSet(file, "Alarm", VehicleInfo[car][vAlarm]);
dini_IntSet(file, "Key", VehicleInfo[car][vKey]);
dini_IntSet(file, "Component0", VehicleInfo[car][vComponent0]);
dini_IntSet(file, "Component1", VehicleInfo[car][vComponent1]);
dini_IntSet(file, "Component2", VehicleInfo[car][vComponent2]);
dini_IntSet(file, "Component3", VehicleInfo[car][vComponent3]);
dini_IntSet(file, "Component4", VehicleInfo[car][vComponent4]);
dini_IntSet(file, "Component5", VehicleInfo[car][vComponent5]);
dini_IntSet(file, "Component6", VehicleInfo[car][vComponent6]);
dini_IntSet(file, "Component7", VehicleInfo[car][vComponent7]);
dini_IntSet(file, "Component8", VehicleInfo[car][vComponent8]);
dini_IntSet(file, "Component9", VehicleInfo[car][vComponent9]);
dini_IntSet(file, "Component10", VehicleInfo[car][vComponent10]);
dini_IntSet(file, "Component11", VehicleInfo[car][vComponent11]);
dini_IntSet(file, "Component12", VehicleInfo[car][vComponent12]);
dini_IntSet(file, "Component13", VehicleInfo[car][vComponent13]);
dini_IntSet(file, "PaintJob", VehicleInfo[car][vPaintJob]);
dini_IntSet(file, "Insurances", VehicleInfo[car][vInsurances]);
}
else {
dini_Create(file);
dini_IntSet(file, "Model", VehicleInfo[car][vModel]);
dini_FloatSet(file, "ParkX", VehicleInfo[car][vX]);
dini_FloatSet(file, "ParkY", VehicleInfo[car][vY]);
dini_FloatSet(file, "ParkZ", VehicleInfo[car][vZ]);
dini_FloatSet(file, "ParkAngle", VehicleInfo[car][vAngle]);
dini_IntSet(file, "Color1", VehicleInfo[car][vColorOne]);
dini_IntSet(file, "Color2", VehicleInfo[car][vColorTwo]);
dini_Set(file, "Owner", VehicleInfo[car][vOwner]);
dini_Set(file, "Description", VehicleInfo[car][vDescription]);
dini_IntSet(file, "Owned", VehicleInfo[car][vOwned]);
dini_IntSet(file, "Lock", VehicleInfo[car][vLock]);
dini_IntSet(file, "LockBuyed", VehicleInfo[car][vLockBuyed]);
dini_IntSet(file, "Alarm", VehicleInfo[car][vAlarm]);
dini_IntSet(file, "Key", VehicleInfo[car][vKey]);
dini_IntSet(file, "Component0", VehicleInfo[car][vComponent0]);
dini_IntSet(file, "Component1", VehicleInfo[car][vComponent1]);
dini_IntSet(file, "Component2", VehicleInfo[car][vComponent2]);
dini_IntSet(file, "Component3", VehicleInfo[car][vComponent3]);
dini_IntSet(file, "Component4", VehicleInfo[car][vComponent4]);
dini_IntSet(file, "Component5", VehicleInfo[car][vComponent5]);
dini_IntSet(file, "Component6", VehicleInfo[car][vComponent6]);
dini_IntSet(file, "Component7", VehicleInfo[car][vComponent7]);
dini_IntSet(file, "Component8", VehicleInfo[car][vComponent8]);
dini_IntSet(file, "Component9", VehicleInfo[car][vComponent9]);
dini_IntSet(file, "Component10", VehicleInfo[car][vComponent10]);
dini_IntSet(file, "Component11", VehicleInfo[car][vComponent11]);
dini_IntSet(file, "Component12", VehicleInfo[car][vComponent12]);
dini_IntSet(file, "Component13", VehicleInfo[car][vComponent13]);
dini_IntSet(file, "PaintJob", VehicleInfo[car][vPaintJob]);
dini_IntSet(file, "Insurances", VehicleInfo[car][vInsurances]);
}
return 1;
}