SA-MP Forums Archive
[Ajuda] Veiculos duplicando - 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] Veiculos duplicando (/showthread.php?tid=617101)



Veiculos duplicando - nasser - 15.09.2016

PHP код:
CreateVehicle(463, -2172.6174633.479148.87650.0000, -1, -1100);
CreateVehicle(463, -2173.6038633.507148.87650.0000, -1, -1100);
CreateVehicle(463, -2174.6243633.494248.87650.0000, -1, -1100);
CreateVehicle(463, -2175.5642633.560748.87650.0000, -1, -1100);
CreateVehicle(401, -2215.4395617.283334.6720179.9400, -1, -1100);
CreateVehicle(526, -2212.4492616.758535.3125178.3800, -1, -1100);
CreateVehicle(522, -2224.0254608.935234.1634216.5400, -1, -1100);
CreateVehicle(522, -2223.3379610.188934.1634216.5400, -1, -1100);
CreateVehicle(522, -2221.6968610.694034.1634216.5400, -1, -1100);
CreateVehicle(487, -2232.3616624.098865.2337, -94.2600, -1, -1100);
CreateVehicle(487, -2199.3748588.384961.6232, -1.5000, -1, -1100);
CreateVehicle(487, -2180.2866584.461555.5407178.8600, -1, -1100); 
Podem ver que os veнculos nгo estгo duplicados esta tudo certo e quando ligo o servidor mesmo sу na GM com os veнculos eles aparecem duplicados '-' pq isso?


Re: Veiculos duplicando - NiGhA - 15.09.2016

@APAGADO


Re: Veiculos duplicando - JPedro - 15.09.2016

Quote:
Originally Posted by NiGhA
Посмотреть сообщение
Код:
CreateVehicle(463, -2172.6174, 633.4791, 48.8765, 0.0000, -1, -1, 100); 
CreateVehicle(463, -2173.6038, 633.5071, 48.8765, 0.0000, -1, -1, 100); 
CreateVehicle(463, -2174.6243, 633.4942, 48.8765, 0.0000, -1, -1, 100); 
CreateVehicle(463, -2175.5642, 633.5607, 48.8765, 0.0000, -1, -1, 100);
Mesmas Coordenadas, Mesmas Id's
nгo sгo as mesmas coordenadas , talvez tenha algum timer que estб criando os veнculos e por isso duplicando-os

poste a callback onde vocк coloca as funзхes de createvehicle, ou verifique se nгo hб nenhum timer chamando


Re: Veiculos duplicando - nasser - 15.09.2016

Quote:
Originally Posted by JPedro
Посмотреть сообщение
nгo sгo as mesmas coordenadas , talvez tenha algum timer que estб criando os veнculos e por isso duplicando-os

poste a callback onde vocк coloca as funзхes de createvehicle, ou verifique se nгo hб nenhum timer chamando
Uso apenas o SetVehicleToRespawn para ele organizar os veнculos de 1 em 1 hora.


Re: Veiculos duplicando - JPedro - 15.09.2016

Quote:
Originally Posted by nasser
Посмотреть сообщение
Uso apenas o SetVehicleToRespawn para ele organizar os veнculos de 1 em 1 hora.
isso nгo faz o veiculo duplicar, mas em qual callback vocк colocou o CreateVehicle?


Re: Veiculos duplicando - Andinho - 16.09.2016

Voce colocou isso em onplayerconnect ?


Re: Veiculos duplicando - BobbMarley - 16.09.2016

coloca em ongamemodeinit, usa streamer para criar carros й um уtimo plugin da para dar um boost no seus mapas


Re: Veiculos duplicando - nasser - 16.09.2016

eles jб estгo em ongamemodeinit
E Jб ultilizo streamer man


Re: Veiculos duplicando - Hyrkul - 16.09.2016

Quando for adicionar veнculos atravйs do OnGameModeInit, use a funзгo AddStaticVehicle.

Uma pergunta, aquele seu loop da linha 22603 nгo fecha? Tente trocar por:

Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
      takingselfie[i] = 0;
}



Re: Veiculos duplicando - nasser - 18.09.2016

Quote:
Originally Posted by Hyrkul
Посмотреть сообщение
Quando for adicionar veнculos atravйs do OnGameModeInit, use a funзгo AddStaticVehicle.

Uma pergunta, aquele seu loop da linha 22603 nгo fecha? Tente trocar por:

Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
      takingselfie[i] = 0;
}
Ihhh rapaz й mesmo vlw '-' nem tinha notado