3DTextLabel problem.
#10

Okay I tried doing this:
At top
pawn Код:
new Text3D:House[500];
Function
pawn Код:
function UpdateHouses()
{
    new idx = 0;
    while(idx < totalhouses)
    {
        Delete3DTextLabel(House[idx]);
        new string[140];
        if(HouseInfo[idx][Owned] == 1)
        {
            format(string,sizeof(string),"House Name: %s",HouseInfo[idx][Name]);
            House[idx] = Create3DTextLabel(string,COLOR_PURPLE,HouseInfo[idx][SpawnX],HouseInfo[idx][SpawnY],HouseInfo[idx][SpawnZ],20.0,0,1);
        }
        else if(HouseInfo[idx][Owned] == 0)
        {
            format(string,sizeof(string),"House For Sale!\nName: %s\nPrice: %d\nInterior: %d",HouseInfo[idx][Name],HouseInfo[idx][Price],HouseInfo[idx][Interior]);
            House[idx] = Create3DTextLabel(string,COLOR_PURPLE,HouseInfo[idx][SpawnX],HouseInfo[idx][SpawnY],HouseInfo[idx][SpawnZ],20.0,0,1);
        }
        idx++;
    }
    return 1;
}
Now no 3DTextLabels are shown.
Reply


Messages In This Thread
3DTextLabel problem. - by oliverrud - 15.07.2010, 13:26
Re: 3DTextLabel problem. - by KnooL - 15.07.2010, 13:49
Re: 3DTextLabel problem. - by oliverrud - 15.07.2010, 13:50
Re: 3DTextLabel problem. - by KnooL - 15.07.2010, 13:54
Re: 3DTextLabel problem. - by Hiddos - 15.07.2010, 13:58
Re: 3DTextLabel problem. - by oliverrud - 15.07.2010, 13:58
Re: 3DTextLabel problem. - by Hiddos - 15.07.2010, 14:01
Re: 3DTextLabel problem. - by oliverrud - 15.07.2010, 14:05
Re: 3DTextLabel problem. - by Hiddos - 15.07.2010, 14:06
Re: 3DTextLabel problem. - by oliverrud - 15.07.2010, 14:11

Forum Jump:


Users browsing this thread: 2 Guest(s)