Create3DTextLabel problem
#4

Looks like you need to use arrays. Try this.
pawn Код:
new Text3D:housesale[sizeof(HouseInfo)];
new Text3D:houseinfo[sizeof(HouseInfo)];

for(new h = 0; h < sizeof(HouseInfo); h++)
{
    if(HouseInfo[h][hOwned] == 0)
    {
        format(string4, sizeof(string4), "%s\nSale: %d Saki",HouseInfo[h][hDiscription],HouseInfo[h][hValue]);
        housesale[h] = Create3DTextLabel(string4,0xF9A406FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15,0,1);
    }
    else
    {
        format(string4, sizeof(string4), "%s\n Owner: %s",HouseInfo[h][hDiscription], HouseInfo[h][hOwner]);
        houseinfo[h] = Create3DTextLabel(string4,0xF9A406FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15,0,1);
    }
}
Reply


Messages In This Thread
Create3DTextLabel problem - by Matu- - 20.07.2011, 22:41
Re: Create3DTextLabel problem - by Matu- - 21.07.2011, 19:33
Re: Create3DTextLabel problem - by Matu- - 24.07.2011, 10:59
Re: Create3DTextLabel problem - by iggy1 - 24.07.2011, 11:18
Re: Create3DTextLabel problem - by Matu- - 25.07.2011, 01:06
Re: Create3DTextLabel problem - by =WoR=Varth - 25.07.2011, 01:47

Forum Jump:


Users browsing this thread: 1 Guest(s)