Help 3DText Please ! [REP ++]
#1

pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
    {
            if(HouseInfo[h][hOwned] == 0)
            {
                    format(PropertyString,sizeof(PropertyString),"{F81414}Kukjata e na prodazba\n {157DEC}Opis: {F3FF02}%s\n {157DEC}Level: {F3FF02}%d\n {157DEC}Cena: {F3FF02}%d$",HouseInfo[h][hDiscription], HouseInfo[h][hLevel], HouseInfo[h][hValue]);
                HouseLabel[h] = Create3DTextLabel(PropertyString ,0xAA3333AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,20, 0, 0);
                HousePickup[h] = CreatePickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            }
            else if(HouseInfo[h][hOwned] == 1 && HouseInfo[h][hRentabil] == 1)
            {
                format(PropertyString,sizeof(PropertyString),"{F81414}Kukja\n {157DEC}Vlasnik: {F3FF02}%s\n {157DEC}Opis: {F3FF02}%s\n {157DEC}Level: {F3FF02}%d",HouseInfo[h][hOwner], HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
                HouseLabel[h] = Create3DTextLabel(PropertyString ,0xAA3333AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,20, 0, 0);
                HousePickup[h] = CreatePickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            }
            else if(HouseInfo[h][hOwned] == 1 && HouseInfo[h][hRentabil] != 1)
            {
                format(PropertyString,sizeof(PropertyString),"{F81414}Kukja\n {157DEC}Vlasnik: {F3FF02}%s\n {157DEC}Opis: {F3FF02}%s\n {157DEC}Level: {F3FF02}%d",HouseInfo[h][hOwner], HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
                HouseLabel[h] = Create3DTextLabel(PropertyString ,0xAA3333AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,20, 0, 0);
                HousePickup[h] = CreatePickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            }
    }
    for(new bi = 0; bi < sizeof(BizzInfo); bi++)
    {
            if(BizzInfo[bi][bOwned] == 0)
            {
                format(PropertyString,sizeof(PropertyString),""#COL_WHITE"[%s]\n"#COL_SVPLAVA"Biznisot e na prodazba.\n "COL_SVPLAVA"Level: "#COL_WHITE"%d "#COL_SVPLAVA"| Cena: "#COL_WHITE"$%d\n "#COL_SVPLAVA"Za kupuvanje koristi "#COL_WHITE"/kupibiznis",BizzInfo[bi][bMessage],BizzInfo[bi][bLevelNeeded],BizzInfo[bi][bBuyPrice]);
                BizzLabel[bi] = Create3DTextLabel(PropertyString ,0x33CCFFAA ,BizzInfo[bi][bEntranceX], BizzInfo[bi][bEntranceY], BizzInfo[bi][bEntranceZ]+0.5,20, 0, 1);
                BizzPickup[bi] = CreatePickup(1272,1,BizzInfo[bi][bEntranceX], BizzInfo[bi][bEntranceY], BizzInfo[bi][bEntranceZ]);

            }
            else if(BizzInfo[bi][bOwned] == 1)
            {
                format(PropertyString,sizeof(PropertyString),"[%s]\n {00C0FF}Vlasnik: "#COL_WHITE"%s , {00C0FF}Reket: {FFFFFF}%s\n {00C0FF}Level: {FFFFFF}%d\n {00C0FF}Za vlez koristi: {FFFFFF}/enter.",BizzInfo[bi][bMessage],BizzInfo[bi][bOwner], BizzInfo[bi][bExtortion], BizzInfo[bi][bLevelNeeded]);
                BizzLabel[bi] = Create3DTextLabel(PropertyString ,0x33CCFFAA,BizzInfo[bi][bEntranceX], BizzInfo[bi][bEntranceY], BizzInfo[bi][bEntranceZ]+0.5,20, 0, 1);
                BizzPickup[bi] = CreatePickup(1239, 1, BizzInfo[bi][bEntranceX], BizzInfo[bi][bEntranceY], BizzInfo[bi][bEntranceZ]);
            }
    }
    for(new b = 0; b < sizeof(SBizzInfo); b++)
    {
        if(SBizzInfo[b][sbOwned] == 0)
        {
            format(PropertyString,sizeof(PropertyString),""#COL_WHITE"[%s]\n"#COL_SVPLAVA"Biznis na prodazba.\n "#COL_SVPLAVA"Level: "#COL_WHITE"%d "#COL_SVPLAVA"| Cena: "#COL_WHITE"$%d\n "#COL_SVPLAVA"Za kupuvanje koristi "#COL_WHITE"/kupibiznis",SBizzInfo[b][sbMessage],SBizzInfo[b][sbLevelNeeded],SBizzInfo[b][sbBuyPrice]);
            SBizzLabel[b] = Create3DTextLabel(PropertyString ,0x33CCFFAA,SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]+0.5,20, 0, 1);
            SBizzPickup[b] = CreatePickup(1272, 1, SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]);
        }
        else if(SBizzInfo[b][sbOwned] == 1)
        {
            format(PropertyString,sizeof(PropertyString),"[%s]\n {00C0FF}Vlasnik: "#COL_WHITE"%s , {00C0FF}Reket: "#COL_WHITE"%s\n {00C0FF}Level: "#COL_WHITE"%d ",SBizzInfo[b][sbMessage],SBizzInfo[b][sbOwner], SBizzInfo[b][sbExtortion], SBizzInfo[b][sbLevelNeeded]);
            SBizzLabel[b] = Create3DTextLabel(PropertyString , 0x33CCFFAA,SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]+0.5,20, 0, 1);
            SBizzPickup[b] = CreatePickup(1239, 1, SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]);
        }
    }
On Business dont show 3DTEXT on other showing please help me ! REP ++
Reply
#2

show how you define your colours e.g. #COL_WHITE
Reply
#3

Dont working please !
Reply
#4

Quote:
Originally Posted by teomakedonija
Посмотреть сообщение
Dont working please !
Hm...
He said Show us not add it.
Reply
#5

i don't understand you ..
Reply
#6

He means Show us u
pawn Код:
#define
#define
#define
//etc.
Reply
#7

in this script what is for define ?
Reply
#8

the color embeddings !
they might cause the textdraw not to display because of invalid color.

your defn of the colour should be like this:
pawn Код:
#define WHITE "{FFFFFF}"
#define BLUE "{00A3FF}"
Ten you would use it like this:
pawn Код:
format(PropertyString,sizeof(PropertyString),""WHITE"[%s]\n"BLUE "Biznisot e na prodazba.\n "BLUE "Level: "WHITE"%d "BLUE "| Cena: "WHITE"$%d\n "BLUE "Za kupuvanje koristi "WHITE"/kupibiznis",BizzInfo[bi][bMessage],BizzInfo[bi][bLevelNeeded],BizzInfo[bi][bBuyPrice]);
try them like that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)