01.08.2010, 11:19
esse e um exemplo simples, Use de base
@@ edit DAs empresas:
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 :
Espero ter ajudado, Se eu ajudei agradeзa.
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);
}
}
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);
}
}
@@ edit dinovo:
O que bugava o seu gm era :
Код:
house label