13.07.2010, 16:09
(
Последний раз редактировалось Hash [NL-RP]; 13.07.2010 в 16:42.
)
What is wrong with this, it should show a text draw above the cars showing their plate which is 'cPlate'
It compiles fine but the Text draw dont show.
for(new h = 0; h < sizeof(CarInfo); h++)
{
if(CarInfo[ownvehkey][cPlate] == 0)
{
Delete3DTextLabel(CarLabel);
format(PropertyString,sizeof(PropertyString),"[______]");
CarLabel = Create3DTextLabel(PropertyString ,0x00FF00FF,CarInfo[ownvehkey][cLocationx]+2, CarInfo[ownvehkey][cLocationy], CarInfo[ownvehkey][cLocationz]+2,10, 0);
}
if(CarInfo[ownvehkey][cPlate] == 1)
{
Delete3DTextLabel(CarLabel);
format(PropertyString,sizeof(PropertyString),"[%d]",CarInfo[ownvehkey][cPlate]);
CarLabel = Create3DTextLabel(PropertyString ,0x00FFFFFF,CarInfo[ownvehkey][cLocationx], CarInfo[ownvehkey][cLocationy], CarInfo[ownvehkey][cLocationz]+2,10, 0);
}
}
It compiles fine but the Text draw dont show.
for(new h = 0; h < sizeof(CarInfo); h++)
{
if(CarInfo[ownvehkey][cPlate] == 0)
{
Delete3DTextLabel(CarLabel);
format(PropertyString,sizeof(PropertyString),"[______]");
CarLabel = Create3DTextLabel(PropertyString ,0x00FF00FF,CarInfo[ownvehkey][cLocationx]+2, CarInfo[ownvehkey][cLocationy], CarInfo[ownvehkey][cLocationz]+2,10, 0);
}
if(CarInfo[ownvehkey][cPlate] == 1)
{
Delete3DTextLabel(CarLabel);
format(PropertyString,sizeof(PropertyString),"[%d]",CarInfo[ownvehkey][cPlate]);
CarLabel = Create3DTextLabel(PropertyString ,0x00FFFFFF,CarInfo[ownvehkey][cLocationx], CarInfo[ownvehkey][cLocationy], CarInfo[ownvehkey][cLocationz]+2,10, 0);
}
}