3D Text doesn't delete?!
#1

As the title say
on the top:
PHP код:
new Text3D:HouseLabel
At the script:
PHP код:
HouseLabel Create3DTextLabel(HouseInfo[i][HouseText], COLOR_GREENHouseInfo[i][EntranceX], HouseInfo[i][EntranceY], HouseInfo[i][EntranceZ], 3001); 
Another where in the script
PHP код:
Delete3DTextLabel(HouseLabel); 
But it doesn't delete
Reply
#2

In your enum used for HouseInfo add:
pawn Код:
Text3D: House3DLabel
and then:
pawn Код:
HouseInfo[i][House3DLabel] = Create3DTextLabel(..);

// and..

Delete3DTextLabel(HouseInfo[index_here][House3DLabel]);
You may consider using dynamic 3D labels as well.
Reply
#3

It delete 3D Text Label but on latest (created) houseid.

Try this
Код:
new Text3D:HouseLabel[MAX_HOUSES];

HouseLabel[i] = Create3DTextLabel(HouseInfo[i][HouseText],.......

Delete3DTextLabel(HouseLabel[i]);
Reply
#4

Thanks Kon
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)