Saving Vehicle to Interior.
#7

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
Well a vehicle's interior will always be 0 unless you change it yourself... so justs keep a variable that changes with a vehicle's interior.

pawn Код:
new vInterior[MAX_VEHICLES];
stock SetVehicleInterior(vehicleid,interiorid)
{
    LinkVehicleToInterior(vehicleid,interiorid);
    vInterior[vehicleid]=interiorid;
}
stock GetVehicleInterior(vehicleid)return vInterior[vehicleid]=interiorid;
Or use those 2 functions in substitution to LinkVehicleToIntrior
This functions should of come default with SA-MP they are way easier to use for some people. Great job on these btw even though they are simple :P
Reply


Messages In This Thread
Saving Vehicle to Interior. - by Desertsoulz - 02.04.2011, 03:33
Re: Saving Vehicle to Interior. - by TheYoungCapone - 02.04.2011, 04:25
Re: Saving Vehicle to Interior. - by Donya - 02.04.2011, 04:33
Re: Saving Vehicle to Interior. - by Desertsoulz - 02.04.2011, 05:37
Re: Saving Vehicle to Interior. - by Joe Staff - 02.04.2011, 06:22
Re: Saving Vehicle to Interior. - by Desertsoulz - 15.04.2011, 00:40
Re: Saving Vehicle to Interior. - by Steven82 - 15.04.2011, 01:04

Forum Jump:


Users browsing this thread: 1 Guest(s)