[Ajuda] Problema com Delete3DTextLabel
#4

Tenta:
pawn Код:
// Topo
#define         MAX_CASAS                   100
new Text3D:Label3[MAX_CASAS];
new Text3D:Label2[MAX_CASAS];
new Text3D:Label1[MAX_CASAS];
// no public PickupGametexts()

for(new h = 0; h < sizeof(Houses); h++)
                {
                    if (PlayerToPoint(20.0, i,Houses[h][EnterX], Houses[h][EnterY], Houses[h][EnterZ]))
                    {
                        if(Houses[h][HousePrice] != 0)
                        {
                            if(Houses[h][Owned] == 0)
                            {
                            Delete3DTextLabel(Label3[h]);
                            Delete3DTextLabel(Label2[h]);
                            new String1[256];
                            new houselocation[MAX_ZONE_NAME];
                            GetCoords2DZone(Houses[h][EnterX],Houses[h][EnterY], houselocation, MAX_ZONE_NAME);
                            format(String1,sizeof(String1),"Esta casa esta para venda! \n Morada:  %d %s \n Descricao: %s \n Preco: $%d",h,houselocation,Houses[h][Description],Houses[h][HousePrice]);
                            Label1[h] = Create3DTextLabel(String1 ,COLOR_GRAD1,Houses[h][EnterX], Houses[h][EnterY], Houses[h][EnterZ],20.0, 0, 1);
                            }
                            else
                            {
                                if(Houses[h][Rentable] == 1)
                                {
                                Delete3DTextLabel(Label1[h]);
                                Delete3DTextLabel(Label3[h]);
                                new String2[256];
                                new houselocation[MAX_ZONE_NAME];
                                GetCoords2DZone(Houses[h][EnterX],Houses[h][EnterY], houselocation, MAX_ZONE_NAME);
                                format(String2,sizeof(String2),"Morada: %d %s \n Proprietario: %s \n Descricao: %s \n Preco de aluguer: $%d",h,houselocation,Houses[h][Owner],Houses[h][Description],Houses[h][RentCost]);
                                Label2[h] = Create3DTextLabel(String2 ,COLOR_GRAD1,Houses[h][EnterX], Houses[h][EnterY], Houses[h][EnterZ],20.0, 0, 1);
                                }
                                else
                                {
                                Delete3DTextLabel(Label1[h]);
                                Delete3DTextLabel(Label2[h]);
                                new String3[256];
                                new houselocation[MAX_ZONE_NAME];
                                GetCoords2DZone(Houses[h][EnterX],Houses[h][EnterY], houselocation, MAX_ZONE_NAME);
                                format(String3,sizeof(String3),"Morada: %d %s \n Proprietario: %s \n Descricao: %s",h,houselocation,Houses[h][Owner],Houses[h][Description]);
                                Label3[h] = Create3DTextLabel(String3 ,COLOR_GRAD1,Houses[h][EnterX], Houses[h][EnterY], Houses[h][EnterZ],20.0, 0, 1);
                                }
                            }
                        }
                    }
                }
Reply


Messages In This Thread
[Ajuda] Problema com Delete3DTextLabel - by Sergiosousa - 10.04.2012, 15:19
Re: [Ajuda] Problema com Delete3DTextLabel - by Deanx - 10.04.2012, 16:44
Re: [Ajuda] Problema com Delete3DTextLabel - by Sergiosousa - 10.04.2012, 17:04
Re: [Ajuda] Problema com Delete3DTextLabel - by CidadeNovaRP - 10.04.2012, 17:30
Re: [Ajuda] Problema com Delete3DTextLabel - by Sergiosousa - 10.04.2012, 17:35
Re: [Ajuda] Problema com Delete3DTextLabel - by CidadeNovaRP - 10.04.2012, 17:42
Re: [Ajuda] Problema com Delete3DTextLabel - by Sergiosousa - 10.04.2012, 17:46
Re: [Ajuda] Problema com Delete3DTextLabel - by CidadeNovaRP - 10.04.2012, 17:51
Re: [Ajuda] Problema com Delete3DTextLabel - by Sergiosousa - 10.04.2012, 17:54

Forum Jump:


Users browsing this thread: 2 Guest(s)