[Ajuda] GetVehicleID - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] GetVehicleID (
/showthread.php?tid=540729)
GetVehicleID -
josuevera1234 - 06.10.2014
Olб existe algum sistema que pega o ID do veiculo: EX
cCarro = CreateVehicle(400, x, y,z, angulo, 1, 1, 90000);
new carroid = GetVehicleID(cCarro);
Existe algo como isso?
Re: GetVehicleID -
Dolby - 06.10.2014
ID do veнculo que o jogador estб?
Re: GetVehicleID -
ipsLuan - 06.10.2014
https://sampwiki.blast.hk/wiki/GetPlayerVehicleID
Re: GetVehicleID -
josuevera1234 - 06.10.2014
nгo, ver o id do veiculo sem ter ninguem dentro
Re: GetVehicleID -
Dolby - 06.10.2014
Entгo armazene-o em uma variбvel global, da mesma forma que fez no exemplo dado por vocк.
Re: GetVehicleID -
josuevera1234 - 06.10.2014
cCarro = CreateVehicle(400, x, y,z, angulo, 1, 1, 90000);
DOF2_SetInt(textic, "CarID", cCarro);
Assim?
Re: GetVehicleID -
Dolby - 06.10.2014
Depende, se vocк deseja salvar esse ID em um arquivo em vez de variбvel, й assim mesmo. Nгo sei o que deseja desenvolver, mas em variбveis ficaria assim:
pawn Код:
//Topo:
new Carro;
//Ao Cria-lo
Carro = CreateVehicle(400, x, y,z, angulo, 1, 1, 90000);
Agora a variбvel
Carro vai conter o ID deste veнculo criado. Vocк tambйm pode utilizar arrays, etc.
Re: GetVehicleID -
josuevera1234 - 06.10.2014
vlw muito obrigado