27.03.2011, 11:56
I want to make this in label like the pictures..
Pic1:
Pic2:
I tryed to move like this:
but i got errors so i need help about this.
Pic1:
Pic2:
pawn Код:
if(HouseInfo[h][hOwned] == 0)
{
format(string1, sizeof(string), "[NA PRODAJU]\n$ %d",HouseInfo[h][hValue]);
housesale = Create3DTextLabel(string1,0xFFFF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
/*format(string1, sizeof(string), "[OWNED BY]\n%s",HouseInfo[h][hOwner]);
Create3DTextLabel(string1,0x006400FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);*/
AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(string1, sizeof(string), "[NA PRODAJU]\n$ %d",BizzInfo[h][bBuyPrice]);
bizsale = Create3DTextLabel(string1,0xFFFF00FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,15,0,1);
AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
if(BizzInfo[h][bOwned] == 1)
{
/*format(string1, sizeof(string), "[OWNED BY]\n%s",BizzInfo[h][bOwner]);
Create3DTextLabel(string1,0x8361FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,15,0,1);*/
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
format(string1, sizeof(string), "[NA PRODAJU]\n$ %d",SBizzInfo[h][sbBuyPrice]);
sbizsale = Create3DTextLabel(string1,0xFFFF00FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1,15,0,1);
AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
if(SBizzInfo[h][sbOwned] == 1)
{
/*format(string1, sizeof(string), "[OWNED BY]\n%s",SBizzInfo[h][sbOwner]);
Create3DTextLabel(string1,0x8361FFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1,15,0,1);*/
AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
}
pawn Код:
if(HouseInfo[h][hOwned] == 0)
{
format(string1, sizeof(string1), "Kuca na prodaju!{F3FF02}\n Cijena: %d$\nOpis: %s\nAdresa: %s\nKupnja:/kupikucu",HouseInfo[h][hValue],HouseInfo[h][hDiscription]);
housesale[h] = Create3DTextLabel(string1,0x0087AFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20,0,1);
pickups++;
}