13.07.2010, 16:13
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,0,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,0,0);
}
}
{
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,0,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,0,0);
}
}