Car mod saving help with mysql
#6

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


Messages In This Thread
Car mod saving help with mysql - by thimo - 09.02.2014, 11:43
Re: Car mod saving help with mysql - by Konstantinos - 09.02.2014, 11:53
Re: Car mod saving help with mysql - by thimo - 09.02.2014, 12:02
Re: Car mod saving help with mysql - by Konstantinos - 09.02.2014, 12:04
Re: Car mod saving help with mysql - by thimo - 09.02.2014, 12:24
Re: Car mod saving help with mysql - by Konstantinos - 09.02.2014, 12:32
Re: Car mod saving help with mysql - by thimo - 09.02.2014, 12:52
Re: Car mod saving help with mysql - by Konstantinos - 09.02.2014, 12:55
Re: Car mod saving help with mysql - by thimo - 09.02.2014, 13:05
Re: Car mod saving help with mysql - by thimo - 09.02.2014, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)