Показать сообщение отдельно

  #8  
Старый 15.12.2021, 02:13
kin4stat
Флудер
Регистрация: 06.11.2017
Сообщений: 2,759
С нами: 4483143

Репутация: 183


По умолчанию

Цитата:
Сообщение от s4db0yman  

C2440 =: невозможно преобразовать "CarPlateRasters *" в "RwTexture *"
C2440 =: невозможно преобразовать "PlateMaterials *" в "RpMaterial *"

Выделил строчки, где ошибка.

C++:





Код:
bool
__thiscall Vehicle
::
CustomCarPlateTextureCreate
(
CVehicle
*
instance
,
CVehicleModelInfo
*
model
)
{
[
B
]
instance
->
m_pCustomCarPlate
=
new
CarPlateRasters
(
)
;
[
/
B
]
return
true
;
}


C++:





Код:
void
__thiscall VehicleModelInfo
::
SetCarCustomPlate
(
CVehicleModelInfo
*
instance
)
{
if
(
instance
->
m_pPlateMaterial
)
{
PlateMaterials
*
plateMaterials
=
reinterpret_cast

(
instance
->
m_pPlateMaterial
)
;
delete
plateMaterials
;
}
instance
->
m_pPlateMaterial
=
nullptr
;
instance
->
m_szPlateText
[
0
]
=
0
;
instance
->
m_nPlateType
=
-
1
;
if
(
PlateMaterials
*
plateMaterials
=
CustomCarPlateManager
::
SetupClump
(
reinterpret_cast

(
instance
->
m_pRwObject
)
)
;
plateMaterials
)
{
[
B
]
instance
->
m_pPlateMaterial
=
plateMaterials
;
[
/
B
]
}
}

Тебе компилятор ошибку указал

[S]Радуйся что не на шаблонах ошибка[/S]
 
Ответить с цитированием