17.07.2010, 17:31
Alright, I got a code which includes a 3DTextLabel, but for some reason, the 3DTextLabel does not display.
pawn Код:
new BizText[256];
if(BizInfo[b][bOwned] == 0)
{
BizInfo[b][bPickup] = CreatePickup(1274, 1, BizInfo[b][bEntrancex], BizInfo[b][bEntrancey], BizInfo[b][bEntrancez]);
format(BizText, sizeof(BizText), "[%s]\n[Business Price: $%d]\n[%s]", BizInfo[b][bName], BizInfo[b][bPrice], BizType[BizInfo[b][bType]]);
BizInfo[b][bLabel] = Create3DTextLabel(BizText, COLOR_WHITE/*0x88EE88FF*/, BizInfo[b][bEntrancex], BizInfo[b][bEntrancey], BizInfo[b][bEntrancez]+0.82, 20.0, 0, 1);
}
else if(BizInfo[b][bOwned] == 1)
{
BizInfo[b][bPickup] = CreatePickup(1318, 1, BizInfo[b][bEntrancex], BizInfo[b][bEntrancey], BizInfo[b][bEntrancez]);
format(BizText, sizeof(BizText), "[%s]\n[%s]\n[%s]", BizInfo[b][bName], BizInfo[b][bOwner], BizType[BizInfo[b][bType]]);
BizInfo[b][bLabel] = Create3DTextLabel(BizText, COLOR_WHITE /*0x5D9BFFBC*/, BizInfo[b][bEntrancex], BizInfo[b][bEntrancey], BizInfo[b][bEntrancez]+0.82, 20.0, 0, 1);
}