[AJUDA] CreateVehicle Bugado
#1

Oi eu to com um problema.

Код:
BombeiroCars[0] = CreateVehicle(490,1002.59997559,-2291.39990234,13.39999962,206.00000000,3,1,999999999); //FBI Rancher
	BombeiroCars[1] = CreateVehicle(490,1006.40002441,-2289.50000000,13.39999962,206.00000000,3,1,999999999); //FBI Rancher
	BombeiroCars[2] = CreateVehicle(490,1010.20001221,-2287.69995117,13.39999962,206.00000000,3,1,999999999); //FBI Rancher
	BombeiroCars[3] = CreateVehicle(487,977.59997559,-2336.10009766,4.09999990,290.00000000,3,1,999999999); //Maverick
	BombeiroCars[4] = CreateVehicle(407,1023.59997559,-2301.89990234,13.50000000,30.00000000,3,1,999999999); //Firetruck
	BombeiroCars[5] = CreateVehicle(407,1016.20001221,-2306.30004883,13.50000000,30.00000000,3,1,999999999); //Firetruck
	BombeiroCars[6] = CreateVehicle(407,1008.70001221,-2310.89990234,13.50000000,30.00000000,3,1,999999999); //Firetruck
Esse codigo tб bugado. Ele tб criando 2 carro em vez de um, ou seja estб a duplica-los fazendo spawn do "falso" por cima do outro!
Me ajudem pff!
Reply
#2

Retire os falsos.
Reply
#3

Como assim?
Reply
#4

Nгo existe outros veнculos, na mesma posiзгo que a que vocк estб criando?
Se sim, remova-os й coloque o novo.
Reply
#5

Quote:
Originally Posted by Đeagle
Посмотреть сообщение
Retire os falsos.
Como assim os falsos?
Reply
#6

Quote:
Originally Posted by Đeagle
Посмотреть сообщение
Nгo existe outros veнculos, na mesma posiзгo que a que vocк estб criando?
Se sim, remova-os й coloque o novo.
Nгo cara. Eles tгo a ser criados a dobrar n sei como! Nгo tem lб mais nenhuns sу aquele que eu postei ai
Reply
#7

Tenta assim:
PHP код:
BombeiroCars[0] = CreateVehicle(490,1002.59997559,-2291.39990234,13.39999962,206.00000000,3,1,120000); //FBI Rancher
    
BombeiroCars[1] = CreateVehicle(490,1006.40002441,-2289.50000000,13.39999962,206.00000000,3,1,120000); //FBI Rancher
    
BombeiroCars[2] = CreateVehicle(490,1010.20001221,-2287.69995117,13.39999962,206.00000000,3,1,120000); //FBI Rancher
    
BombeiroCars[3] = CreateVehicle(487,977.59997559,-2336.10009766,4.09999990,290.00000000,3,1,120000); //Maverick
    
BombeiroCars[4] = CreateVehicle(407,1023.59997559,-2301.89990234,13.50000000,30.00000000,3,1,120000); //Firetruck
    
BombeiroCars[5] = CreateVehicle(407,1016.20001221,-2306.30004883,13.50000000,30.00000000,3,1,120000); //Firetruck
    
BombeiroCars[6] = CreateVehicle(407,1008.70001221,-2310.89990234,13.50000000,30.00000000,3,1,120000); //Firetruck 
Reply
#8

Carros criados no OnGameModeInit ou OnFilterScriptInit, use AddStaticVehicleEx ou AddStaticVehicle.
pawn Код:
BombeiroCars[0] = AddStaticVehicleEx(490,1002.59997559,-2291.39990234,13.39999962,206.00000000,3,1,999999999); //FBI Rancher
BombeiroCars[1] = AddStaticVehicleEx(490,1006.40002441,-2289.50000000,13.39999962,206.00000000,3,1,999999999); //FBI Rancher
BombeiroCars[2] = AddStaticVehicleEx(490,1010.20001221,-2287.69995117,13.39999962,206.00000000,3,1,999999999); //FBI Rancher
BombeiroCars[3] = AddStaticVehicleEx(487,977.59997559,-2336.10009766,4.09999990,290.00000000,3,1,999999999); //Maverick
BombeiroCars[4] = AddStaticVehicleEx(407,1023.59997559,-2301.89990234,13.50000000,30.00000000,3,1,999999999); //Firetruck
BombeiroCars[5] = AddStaticVehicleEx(407,1016.20001221,-2306.30004883,13.50000000,30.00000000,3,1,999999999); //Firetruck
BombeiroCars[6] = AddStaticVehicleEx(407,1008.70001221,-2310.89990234,13.50000000,30.00000000,3,1,999999999); //Firetruck
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)