Posts: 899
Threads: 197
Joined: Feb 2009
Reputation:
0
Well,i wanted to ask?where can i get veh id?,like example,if i have 5 cars,
are they like this:
addstaticvehicle(psalpdlaspldas); carid 1
addstaticvehicle(psalpdlaspldas); carid 2
addstaticvehicle(psalpdlaspldas); carid 3
addstaticvehicle(psalpdlaspldas); carid 4
addstaticvehicle(psalpdlaspldas); carid 5
thanks for answering.
Posts: 64
Threads: 0
Joined: Jul 2008
Reputation:
0
You can store it in a variable:
new Vehicle[MAX_VEHICLES];
Vehicle[1] = addstaticvehicle(psalpdlaspldas); carid 1
Vehicle[2] = addstaticvehicle(psalpdlaspldas); carid 2
Vehicle[3] = addstaticvehicle(psalpdlaspldas); carid 3
Vehicle[4] = addstaticvehicle(psalpdlaspldas); carid 4
Vehicle[5] = addstaticvehicle(psalpdlaspldas); carid 5
Posts: 899
Threads: 197
Joined: Feb 2009
Reputation:
0
ooohhh,thanks but..can i start them from end,like
Vehicle[122] = CreateVehicle(psalpdlaspldas);
Vehicle[121] = CreateVehicle(psalpdlaspldas);
Vehicle[120] = CreateVehicle(psalpdlaspldas);
Vehicle[119] = CreateVehicle(psalpdlaspldas);
Vehicle[118] = CreateVehicle(psalpdlaspldas);
Posts: 64
Threads: 0
Joined: Jul 2008
Reputation:
0
You can order as you want, just make sure that the index exists.
Posts: 2,200
Threads: 14
Joined: Apr 2009
Reputation:
0
It does return the vehicle id. Wiki is wrong