CarID and vehicle buying issue
#1

Hi all.

When I buy a vehicle it assigns me ID 1 of the car database but creates the car ID 980 as an unknown vehicle. I want the player to be assigned the ID 980 and not ID 1.

pawn Код:
new carid = CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);

ownedcar[carid] = carid;
EDIT:
I changed it to this:
pawn Код:
ownedcar[carid] = car;
It now works and assigns correctly but it also starts from 1 and pushes every car to the next ID...
Reply


Messages In This Thread
CarID and vehicle buying issue - by MrSnapp - 14.03.2013, 08:35
Re: CarID and vehicle buying issue - by mineralo - 14.03.2013, 10:02
Re: CarID and vehicle buying issue - by MrSnapp - 16.03.2013, 06:00

Forum Jump:


Users browsing this thread: 1 Guest(s)