INI_WriteInt(File, "panel", vInfo[v][panel]);
INI_WriteInt(File, "door", vInfo[v][door]);
INI_WriteInt(File, "light", vInfo[v][light]);
INI_WriteInt(File, "tire", vInfo[v][tire]);
INI_Int("panel", vInfo[v][panel]);
INI_Int("door", vInfo[v][door]);
INI_Int("light", vInfo[v][light]);
INI_Int("tire", vInfo[v][tire]);
INI_Int("panel", vInfo[v][panel]);
INI_Int("door", vInfo[v][door]);
INI_Int("light", vInfo[v][light]);
INI_Int("tire", vInfo[v][tire]);
printf("%d | %d | %d | %d | %d", v, vInfo[v][panel] , vInfo[v][door] , vInfo[v][light], vInfo[v][tire] );
5 | 0 | 0 | 0 | 0 |
LoadVehicle(v, file[])
{
INI_ParseFile(file, "vehicle_load_%s", .bExtra = true, .extra = v);
CreateSystemVehicle(vInfo[v][model], vInfo[v][x], vInfo[v][y], vInfo[v][z], vInfo[v][a], vInfo[v][col1], vInfo[v][col2], vInfo[v][owner]);
ChangeVehiclePaintjob(vInfo[v][id], vPaintjob[v]);
printf("%d | %d | %d | %d | %d", v, vInfo[v][panel] , vInfo[v][door] , vInfo[v][light], vInfo[v][tire] );
UpdateVehicleDamageStatus(vInfo[v][id], vInfo[v][panel], vInfo[v][door] ,vInfo[v][light], vInfo[v][tire]);
for(new i = 0; i < 14; i++) AddVehicleComponent(vInfo[v][id], vInfo[v][comps][i]);
}
enum v_info_
{
id,
model,
col1,
col2,
Float: x,
Float: y,
Float: z,
Float: a,
owner[MAX_PLAYER_NAME],
comps[14],
panel,
door,
light,
tire
}
forward vehicle_load_data(v, name[], value[]);
public vehicle_load_data(v, name[], value[])
{
new strComp[10];
INI_Int("model", vInfo[v][model]);
INI_Int("col1", vInfo[v][col1]);
INI_Int("col2", vInfo[v][col2]);
INI_Float("x", vInfo[v][x]);
INI_Float("y", vInfo[v][y]);
INI_Float("z", vInfo[v][z]);
INI_Float("angle", vInfo[v][a]);
INI_String("owner", vInfo[v][owner], MAX_PLAYER_NAME);
INI_Int("paintjob", vPaintjob[v]);
INI_Int("panel", vInfo[v][panel]);
INI_Int("door", vInfo[v][door]);
INI_Int("light", vInfo[v][light]);
INI_Int("tire", vInfo[v][tire]);
printf("%d | %d | %d | %d | %d", v, vInfo[v][panel] , vInfo[v][door] , vInfo[v][light], vInfo[v][tire] );
for(new i = 0; i < 14; i++) {format(strComp, sizeof(strComp), "comp%d", i); INI_Int(strComp, vInfo[v][comps][i]); }
return 1;
}
LoadVehicle(v, file[])
{
INI_ParseFile(file, "vehicle_load_%s", .bExtra = true, .extra = v);
CreateSystemVehicle(vInfo[v][model], vInfo[v][x], vInfo[v][y], vInfo[v][z], vInfo[v][a], vInfo[v][col1], vInfo[v][col2], vInfo[v][owner]);
ChangeVehiclePaintjob(vInfo[v][id], vPaintjob[v]);
printf("%d | %d | %d | %d | %d", v, vInfo[v][panel] , vInfo[v][door] , vInfo[v][light], vInfo[v][tire] );
UpdateVehicleDamageStatus(vInfo[v][id], vInfo[v][panel], vInfo[v][door] ,vInfo[v][light], vInfo[v][tire]);
for(new i = 0; i < 14; i++) AddVehicleComponent(vInfo[v][id], vInfo[v][comps][i]);
}