Each vehicle, own ID.
#8

PHP код:
new car1car2;
car1 CreateVehicle(...);
car2 CreateVehicle(...); 
CreateVehicle returns the car ID that the server has given it. So in the above code car1 = 0 and car2 = 1 if they are the first vehicles streamed onto your server.

It wold be wise for you to link your database IDs to the server IDs if you want different types of cars.

Take a look at how the VorteX gamemode does it if you are interested.
Reply


Messages In This Thread
Each vehicle, own ID. - by Ihsan-Cingisiz - 24.01.2011, 16:15
Re: Each vehicle, own ID. - by Ihsan-Cingisiz - 24.01.2011, 19:50
Re: Each vehicle, own ID. - by Cameltoe - 24.01.2011, 20:20
Re: Each vehicle, own ID. - by Baboon - 24.01.2011, 20:23
Re: Each vehicle, own ID. - by Outcast - 24.01.2011, 20:29
Re: Each vehicle, own ID. - by Ihsan-Cingisiz - 24.01.2011, 20:43
Re: Each vehicle, own ID. - by Cameltoe - 24.01.2011, 20:58
Re: Each vehicle, own ID. - by Gabe - 24.01.2011, 21:00
Re: Each vehicle, own ID. - by Ihsan-Cingisiz - 25.01.2011, 17:57

Forum Jump:


Users browsing this thread: 3 Guest(s)