09.02.2014, 12:32
You should know the vehicleid so I guess you have to return the vehicleid with House_AddVehicle or somehow pass it as variable by reference.
pawn Код:
new
a[14],
house_vehicleid;
cache_get_row(0, 14, mods, Handle, 71);
sscanf(mods, "p<,>a<i>[14]", a);
// House_AddVehicle here.. get the vehicleid somehow.. and store it to "house_vehicleid"
for (new s; s != 14; ++s)
{
if (a[s]) AddVehicleComponent(house_vehicleid, a[s]);
}