[Help] 3DTextLabels
#1

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);
            }
Reply
#2

Maybe you don't have Return 1;?
Reply
#3

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);
            }
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)