08.11.2013, 15:06
Alright, when I /createbiz the textdraw does not appear. But when I load the textlabels ongamemodeinit it appears in game and I can update them, etc. How do I make it so it instantly appears when I /createbiz?
Here's my code in my /createbiz command.
Here's my code in my /createbiz command.
pawn Код:
format(string,sizeof(string),""COL_BROWN"Owner: None\nPrice: %d\nBusiness type: %s\nStreet Number: %d", BusinessInfo[id][bPrice], biztext, id);
BusinessInfo[id][DLabel] = Create3DTextLabel(string, 0xFFFFFF, BusinessInfo[id][bEntranceX],BusinessInfo[id][bEntranceY],BusinessInfo[id][bEntranceZ], 10.0, 0, 0);
Update3DTextLabelText(BusinessInfo[id][DLabel], 0xFFFFFFFF, string);