help with cars id - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with cars id (
/showthread.php?tid=84940)
help with cars id -
Jimmy1 - 04.07.2009
i am not looking for cars ID like 400-600.
this is a line from godfather:
{405,-2125.7424,658.0462,52.2988,93.9612},//carid 90
^
^
how he know that this is 90
is there anywhere defined or something.
btw. I need it for rent car and some other things.
Re: help with cars id -
ashley_bridges - 04.07.2009
search the sa-mp wiki at
https://sampwiki.blast.hk/wiki/Main_Page
Re: help with cars id -
Jimmy1 - 04.07.2009
cant find I seached
Re: help with cars id -
saiberfun - 04.07.2009
if u have the vehicles on one script all addststicvehicle bцah
then u can count from 1 to ...
so u get the id like that
if u want to check the vehicle id sum1 drives then u need
GetPlayerVehicleID(playerid);
Re: help with cars id -
Jimmy1 - 04.07.2009
Thanks
Re: help with cars id -
Jimmy1 - 04.07.2009
i have some AddStaticVehicle and have AddStaticVehicleEx
and i counted then all together and the result in game was bad. all mixed
rentcar,planes,boats,taxi all.....
how should i count
Re: help with cars id -
Jimmy1 - 04.07.2009
pls help?
Re: help with cars id -
saiberfun - 04.07.2009
count them in ur script line for line
AddStaticVehicle(blah..); //1
AddStaticVehicle(blah..);//2
AddStaticVehicle(blah..);//3
AddStaticVehicle(blah..);//4
AddStaticVehicle(blah..);//5
AddStaticVehicle(blah..);//6
Re: help with cars id -
Vince - 04.07.2009
Read this, and hopefully you'll understand:
http://forum.sa-mp.com/index.php?top....0#post_assume
Re: help with cars id -
Schock - 04.07.2009
Quote:
Originally Posted by saiberfun
count them in ur script line for line
AddStaticVehicle(blah..); //1
AddStaticVehicle(blah..);//2
AddStaticVehicle(blah..);//3
AddStaticVehicle(blah..);//4
AddStaticVehicle(blah..);//5
AddStaticVehicle(blah..);//6
|
you have to count from zero like this:
Код:
AddStaticVehicle(blah..); //0
AddStaticVehicle(blah..);//1
AddStaticVehicle(blah..);//2
AddStaticVehicle(blah..);//3
AddStaticVehicle(blah..);//4
AddStaticVehicle(blah..);//5