14.03.2013, 08:35
(
Последний раз редактировалось MrSnapp; 14.03.2013 в 09:56.
)
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.
EDIT:
I changed it to this:
It now works and assigns correctly but it also starts from 1 and pushes every car to the next ID...
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;
I changed it to this:
pawn Код:
ownedcar[carid] = car;