PDA

View Full Version : Help 3DText Please ! [REP ++]


teomakedonija
30/11/2012, 12:41 PM
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 ++

park4bmx
30/11/2012, 12:53 PM
show how you define your colours e.g. #COL_WHITE

teomakedonija
30/11/2012, 01:27 PM
Dont working please !

[D]ry[D]esert
30/11/2012, 01:30 PM
Dont working please !
Hm...
He said Show us not add it.

teomakedonija
30/11/2012, 01:41 PM
i don't understand you ..

Mustafa6155
30/11/2012, 01:56 PM
He means Show us u

#define
#define
#define
//etc.

teomakedonija
01/12/2012, 07:53 AM
in this script what is for define ?

park4bmx
01/12/2012, 09:35 AM
the color embeddings !
they might cause the textdraw not to display because of invalid color.

your defn of the colour should be like this:

#define WHITE "{FFFFFF}"
#define BLUE "{00A3FF}"

Ten you would use it like this:

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.