[Ajuda] Veнculo fica invisнvel dentro de interior!
#1

Olб Pessoal estou com um problema que nгo consigo resolver, jб tentei ver no search e nada.

O problema, jб diz no titulo " Veнculo fica invisнvel dentro de interior! "

Estou fazendo um pequeno projeto em meu gamemode.

Eu coloquei para o veнculo nascer em 1є mundo(SetVehicleVirtualWorld) no interior ID 14.

Jб tentei de varias maneiras mais o problema persisti. A ъnica opзгo foi pedir a ajuda de vocкs

CMD
pawn Код:
new Moto_H[9];
    SetVehicleVirtualWorld(Moto_H[0] = AddStaticVehicleEx(468, -1496.3064, 1609.0743, 1052.1719, 269.2710, 19, 21, 300), 1);
    SetVehicleVirtualWorld(Moto_H[1] = AddStaticVehicleEx(468, -1496.3650, 1610.9624, 1052.1812, 273.6961, 17, 15, 300), 1);
    SetVehicleVirtualWorld(Moto_H[2] = AddStaticVehicleEx(468, -1496.2581, 1612.6787, 1052.1693, 269.3260, 3, 2, 300), 1);
    SetVehicleVirtualWorld(Moto_H[3] = AddStaticVehicleEx(468, -1496.1704, 1614.4430, 1052.2124, 270.9929, 0, 14, 300), 1);
    SetVehicleVirtualWorld(Moto_H[4] = AddStaticVehicleEx(468, -1496.1847, 1616.1089, 1052.1920, 269.9526, 20, 24, 300), 1);
    SetVehicleVirtualWorld(Moto_H[5] = AddStaticVehicleEx(468, -1496.2250, 1617.8888, 1052.1885, 271.8943, 50, 68, 300), 1);
    SetVehicleVirtualWorld(Moto_H[6] = AddStaticVehicleEx(468, -1496.1567, 1619.6052, 1052.1486, 272.4467, 15, 9, 300), 1);
    SetVehicleVirtualWorld(Moto_H[7] = AddStaticVehicleEx(468, -1496.2113, 1621.3115, 1052.1930, 272.9858, 13, 12, 300), 1);
    LinkVehicleToInterior(Moto_H[8], 14);
Olhem a imagem!
Reply
#2

LinkVehicleToInterior
Reply
#3

Quote:
Originally Posted by MultiKill
Посмотреть сообщение
Desculpe, nem informei o CMD.

Bom jб estou usando LinkVehicleToInterior.
Reply
#4

LinkVehicleToInterior(Moto_H[8], 14);

Vocк acha mesmo que sem algum Loop ele vai setar de todos?
Reply
#5

Quote:
Originally Posted by JonathanFeitosa
Посмотреть сообщение
LinkVehicleToInterior(Moto_H[8], 14);

Vocк acha mesmo que sem algum Loop ele vai setar de todos?
Jб fiz com Loop e o resultado foi o mesmo.
Reply
#6

Faзa com VW tbm. Manda o code ai..
Reply
#7

Quote:
Originally Posted by JonathanFeitosa
Посмотреть сообщение
Faзa com VW tbm. Manda o code ai..
Certo, Vou tentar! Qualquer coisa eu aviso.
Reply
#8

Quote:
Originally Posted by JonathanFeitosa
Посмотреть сообщение
Faзa com VW tbm. Manda o code ai..
Deu certo. Obrigado

Como tu disse, Eu fiz o loop com o VW e o VI.

pawn Код:
new VT[9], VW[9];
    VW[0] = VT[0] = AddStaticVehicleEx(468, -1496.3064, 1609.0743, 1052.1719, 269.2710, 19, 21, 300);
    VW[1] = VT[1] = AddStaticVehicleEx(468, -1496.3650, 1610.9624, 1052.1812, 273.6961, 17, 15, 300);
    VW[2] = VT[2] = AddStaticVehicleEx(468, -1496.2581, 1612.6787, 1052.1693, 269.3260, 3, 2, 300);
    VW[3] = VT[3] = AddStaticVehicleEx(468, -1496.1704, 1614.4430, 1052.2124, 270.9929, 0, 14, 300);
    VW[4] = VT[4] = AddStaticVehicleEx(468, -1496.1847, 1616.1089, 1052.1920, 269.9526, 20, 24, 300);
    VW[5] = VT[5] = AddStaticVehicleEx(468, -1496.2250, 1617.8888, 1052.1885, 271.8943, 50, 68, 300);
    VW[6] = VT[6] = AddStaticVehicleEx(468, -1496.1567, 1619.6052, 1052.1486, 272.4467, 15, 9, 300);
    VW[7] = VT[7] = AddStaticVehicleEx(468, -1496.2113, 1621.3115, 1052.1930, 272.9858, 13, 12, 300);
   
    for( new i = 0; i < sizeof(VT); i++)
    LinkVehicleToInterior(VT[i], 14);
    for( new i = 0; i < sizeof(VW); i++)
    SetVehicleVirtualWorld(VW[i], 1);
Reply
#9

Quote:
Originally Posted by petrick_schoba
Посмотреть сообщение
pawn Код:
VW[0] = VT[0] = AddStaticVehicleEx
Por que faz isso? '-'

Tente assim:
pawn Код:
new VW[8];
    VW[0] = AddStaticVehicleEx(468, -1496.3064, 1609.0743, 1052.1719, 269.2710, 19, 21, 300);
    VW[1] = AddStaticVehicleEx(468, -1496.3650, 1610.9624, 1052.1812, 273.6961, 17, 15, 300);
    VW[2] = AddStaticVehicleEx(468, -1496.2581, 1612.6787, 1052.1693, 269.3260, 3, 2, 300);
    VW[3] = AddStaticVehicleEx(468, -1496.1704, 1614.4430, 1052.2124, 270.9929, 0, 14, 300);
    VW[4] = AddStaticVehicleEx(468, -1496.1847, 1616.1089, 1052.1920, 269.9526, 20, 24, 300);
    VW[5] = AddStaticVehicleEx(468, -1496.2250, 1617.8888, 1052.1885, 271.8943, 50, 68, 300);
    VW[6] = AddStaticVehicleEx(468, -1496.1567, 1619.6052, 1052.1486, 272.4467, 15, 9, 300);
    VW[7] = AddStaticVehicleEx(468, -1496.2113, 1621.3115, 1052.1930, 272.9858, 13, 12, 300);
    for(new i = 0; i != 8 ; i++)
    {
        LinkVehicleToInterior(VW[i], 14);
        SetVehicleVirtualWorld(VW[i], 1);
    }
Nгo hб necessidade de usar 2 loops e a criaзгo de 2 variбveis.
Reply
#10

Quote:
Originally Posted by Artista
Посмотреть сообщение
Por que faz isso? '-'

Tente assim:
pawn Код:
new VW[8];
    VW[0] = AddStaticVehicleEx(468, -1496.3064, 1609.0743, 1052.1719, 269.2710, 19, 21, 300);
    VW[1] = AddStaticVehicleEx(468, -1496.3650, 1610.9624, 1052.1812, 273.6961, 17, 15, 300);
    VW[2] = AddStaticVehicleEx(468, -1496.2581, 1612.6787, 1052.1693, 269.3260, 3, 2, 300);
    VW[3] = AddStaticVehicleEx(468, -1496.1704, 1614.4430, 1052.2124, 270.9929, 0, 14, 300);
    VW[4] = AddStaticVehicleEx(468, -1496.1847, 1616.1089, 1052.1920, 269.9526, 20, 24, 300);
    VW[5] = AddStaticVehicleEx(468, -1496.2250, 1617.8888, 1052.1885, 271.8943, 50, 68, 300);
    VW[6] = AddStaticVehicleEx(468, -1496.1567, 1619.6052, 1052.1486, 272.4467, 15, 9, 300);
    VW[7] = AddStaticVehicleEx(468, -1496.2113, 1621.3115, 1052.1930, 272.9858, 13, 12, 300);
    for(new i = 0; i != 8 ; i++)
    {
        LinkVehicleToInterior(VW[i], 14);
        SetVehicleVirtualWorld(VW[i], 1);
    }
Fiz na pressa sу pra ver se ia dar certo. Jб tinha organizado aqui. Mais obg!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)