PDA

Просмотр полной версии : [Вопрос] Проблемы с прикреплением 3d текста.



heralt
02.02.2015, 03:16
Вообщем, прикрепил 3д тексты к авто, а они ни в какую не хотят отображаться.

Вот код:

Перменные.


Text3D:TextAutoSfpd1,
Text3D:TextAutoSfpd2,
Text3D:TextAutoSfpd3,
AutoSfpd[3],

Функция.


TextAutoSfpd1 = Create3DTextLabel( "D-4102", white, 7.77, 7.77, 7.77, 55.0, 0, 1 ); // Text3D:TextAutoSfpd,
TextAutoSfpd2 = Create3DTextLabel( "L-3915", white, 7.77, 7.77, 7.77, 55.0, 0, 1 );
TextAutoSfpd3 = Create3DTextLabel( "F-9316", white, 7.77, 7.77, 7.77, 55.0, 0, 1 );
Attach3DTextLabelToVehicle( TextAutoSfpd1, AutoSfpd[0], 0.0, 0.0, 1.5 );
Attach3DTextLabelToVehicle( TextAutoSfpd2, AutoSfpd[1], 0.0, 0.0, 1.5 );
Attach3DTextLabelToVehicle( TextAutoSfpd3, AutoSfpd[2], 0.0, 0.0, 1.5 );
AutoSfpd[0] = AddStaticVehicleEx(597,-1624.7000000,691.4000200,-5.4000000,180.0000000,44,1,1200); //Police Car (SFPD)
AutoSfpd[1] = AddStaticVehicleEx(597,-1628.5000000,691.4000200,-5.4000000,179.4950000,44,1,1200); //Police Car (SFPD)
AutoSfpd[2] = AddStaticVehicleEx(597,-1632.6000000,691.5000000,-5.4000000,179.4950000,44,1,1200); //Police Car (SFPD)

Mazzilla
02.02.2015, 12:10
Может быть, сначала нужно транспорт создать, прежде чем к нему аттачить текст?

heralt
02.02.2015, 16:54
Он создан. 3d текст не отображается, вот и все.

L0ndl3m
02.02.2015, 17:19
Вы сначала создайте транспорт, а потом прикрепляйте текст. У вас же прикрепляется к транспорту, которого не существует.

heralt
02.02.2015, 17:30
С созданым транспортом.


TextAutoSfpd1 = Create3DTextLabel( "D-4102", white, 7.77, 7.77, 7.77, 55.0, 0, 1 ); // Text3D:TextAutoSfpd,
TextAutoSfpd2 = Create3DTextLabel( "L-3915", white, 7.77, 7.77, 7.77, 55.0, 0, 1 );
TextAutoSfpd3 = Create3DTextLabel( "F-9316", white, 7.77, 7.77, 7.77, 55.0, 0, 1 );
Attach3DTextLabelToVehicle( TextAutoSfpd1, AutoSfpd[0], 0.0, 0.0, 1.5 );
Attach3DTextLabelToVehicle( TextAutoSfpd2, AutoSfpd[1], 0.0, 0.0, 1.5 );
Attach3DTextLabelToVehicle( TextAutoSfpd3, AutoSfpd[2], 0.0, 0.0, 1.5 );
//AddStaticVehicleEx(597,-1624.7000000,691.4000200,-5.4000000,180.0000000,44,1,1200); //Police Car (SFPD)
//AddStaticVehicleEx(597,-1628.5000000,691.4000200,-5.4000000,179.4950000,44,1,1200); //Police Car (SFPD)
//AddStaticVehicleEx(597,-1632.6000000,691.5000000,-5.4000000,179.4950000,44,1,1200); //Police Car (SFPD)
AutoSfpd[0] = AddStaticVehicleEx(597,-1624.7000000,691.4000200,-5.4000000,180.0000000,44,1,1200); //Police Car (SFPD)
AutoSfpd[1] = AddStaticVehicleEx(597,-1628.5000000,691.4000200,-5.4000000,179.4950000,44,1,1200); //Police Car (SFPD)
AutoSfpd[2] = AddStaticVehicleEx(597,-1632.6000000,691.5000000,-5.4000000,179.4950000,44,1,1200); //Police Car (SFPD)

http://i.imgur.com/V1gGDQc.png

Без создания транспорта:

http://i.imgur.com/N4XBY7P.png

Mazzilla
02.02.2015, 18:21
AutoSfpd[0] = AddStaticVehicleEx(597,-1624.7000000,691.4000200,-5.4000000,180.0000000,44,1,1200); //Police Car (SFPD)
AutoSfpd[1] = AddStaticVehicleEx(597,-1628.5000000,691.4000200,-5.4000000,179.4950000,44,1,1200); //Police Car (SFPD)
AutoSfpd[2] = AddStaticVehicleEx(597,-1632.6000000,691.5000000,-5.4000000,179.4950000,44,1,1200); //Police Car (SFPD)
TextAutoSfpd1 = Create3DTextLabel( "D-4102", white, 7.77, 7.77, 7.77, 55.0, 0, 1 ); // Text3D:TextAutoSfpd,
TextAutoSfpd2 = Create3DTextLabel( "L-3915", white, 7.77, 7.77, 7.77, 55.0, 0, 1 );
TextAutoSfpd3 = Create3DTextLabel( "F-9316", white, 7.77, 7.77, 7.77, 55.0, 0, 1 );
Attach3DTextLabelToVehicle( TextAutoSfpd1, AutoSfpd[0], 0.0, 0.0, 1.5 );
Attach3DTextLabelToVehicle( TextAutoSfpd2, AutoSfpd[1], 0.0, 0.0, 1.5 );
Attach3DTextLabelToVehicle( TextAutoSfpd3, AutoSfpd[2], 0.0, 0.0, 1.5 );
//AddStaticVehicleEx(597,-1624.7000000,691.4000200,-5.4000000,180.0000000,44,1,1200); //Police Car (SFPD)
//AddStaticVehicleEx(597,-1628.5000000,691.4000200,-5.4000000,179.4950000,44,1,1200); //Police Car (SFPD)
//AddStaticVehicleEx(597,-1632.6000000,691.5000000,-5.4000000,179.4950000,44,1,1200); //Police Car (SFPD)

heralt
02.02.2015, 18:58
Все, проблема решена.