[AJUDA]
#2

esse e um exemplo simples, Use de base

pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
            AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            CreatePlayer3DTextLabel(playerid,"Esta Casa Esta a venda. Preco: Level: ",0x008080FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],20.0);
            pickups++;
        }
        if(HouseInfo[h][hOwned] == 1)
        {
            AddStaticPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            CreatePlayer3DTextLabel(playerid,"Esta casa ja tem dono,",0x008080FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],20.0);
            pickups++;
            format(string, sizeof(string), "Dono: %s", HouseInfo[h][hOwner]);
            Create3DTextLabel(string,0xFF0000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.1,10.0,0);
        }
    }
@@ edit DAs empresas:

pawn Код:
for(new h = 0; h < sizeof(BizzInfo); h++)
    {
        if(BizzInfo[h][bOwned] == 0)
        {
            AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
            format(string, sizeof(string), "%s", BizzInfo[h][bMessage]);
            Create3DTextLabel(string,0xFF0000FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.2,10.0,0);
            format(string, sizeof(string), "Esta Empresa Esta a venda");//bBuyPrice
            Create3DTextLabel(string,0xFF0000FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.1,10.0,0);
        }
        if(BizzInfo[h][bOwned] == 1)
        {
            AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
            format(string, sizeof(string), "%s", BizzInfo[h][bMessage]);
            Create3DTextLabel(string,0xFF0000FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.2,10.0,0);
        }
    }
    for(new h = 0; h < sizeof(SBizzInfo); h++)
    {
        if(SBizzInfo[h][sbOwned] == 0)
        {
            AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            pickups++;
            format(string, sizeof(string), "%s", SBizzInfo[h][sbMessage]);
            Create3DTextLabel(string,0xFF0000FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.2,10.0,0);       
        }
        if(SBizzInfo[h][sbOwned] == 1)
        {
            AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            pickups++;
            format(string, sizeof(string), "%s", SBizzInfo[h][sbMessage]);
            Create3DTextLabel(string,0xFF0000FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.2,10.0,0);
        }
    }
Tente deixar a estrutura do codigo mais ou menos assim, vocК pode colocar mais coisas, e so mudar a cordZ

@@ edit dinovo:

O que bugava o seu gm era :
Код:
house label
Espero ter ajudado, Se eu ajudei agradeзa.
Reply


Messages In This Thread
[AJUDA] - RESOLVIDO - by Rodrigo_Vilhena - 01.08.2010, 09:19
Re: [AJUDA] - by sergio_xd - 01.08.2010, 11:19
Re: [AJUDA] - by Rodrigo_Vilhena - 01.08.2010, 12:04
Re: [AJUDA] - by sergio_xd - 01.08.2010, 12:08
Re: [AJUDA] - by Rodrigo_Vilhena - 02.08.2010, 05:30
Re: [AJUDA] - by Rodrigo_Vilhena - 02.08.2010, 12:11
Re: [AJUDA] - by RoamPT - 02.08.2010, 16:31
Re: [AJUDA] - by Gabriel_Halls - 04.08.2010, 05:19
Re: [AJUDA] - by Canabis - 04.08.2010, 05:39
Re: [AJUDA] - by Pedro_Drin - 04.08.2010, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)