presisa criar um settime pra atualizar.
// olha ae
pawn Code:
//3d
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
new Casa[128];
format(Casa, sizeof(Casa), "Casa a Venda! \n Preco: $%d \n Informacoes: %s \n Nivel Necessario: %d", HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(Casa,0x33FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10, 0, 1);
AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
new Casa2[128];
format(Casa2, sizeof(Casa2), "Dono da Casa %s \n Preco Aluguel: $%d \n Descricao: %s \n Para alugar, Digite: /alugarquarto", HouseInfo[h][hOwner], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
HouseLabel[h] = Create3DTextLabel(Casa2,0x33FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10, 0, 1);
AddStaticPickup(1318, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
new empresa[128];
format(empresa,sizeof(empresa),"Empresa a Venda! \n Preco: $%d \n Level Necessario: %d \n Para comprar, Digite: /compraremp.", BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
HouseLabel[h] = Create3DTextLabel(empresa ,0x33FF00FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],10, 0, 1);
AddStaticPickup(1272,1,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],-1);
}
else if(BizzInfo[h][bOwned] == 1)
{
new empresa1[128];
format(empresa1,sizeof(empresa1),"%s \n Dono: %s \n Extorcao: %s \n Taxa Entrada: $%d. \n Para Entrar, Aperte F.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
HouseLabel[h] = Create3DTextLabel(empresa1 ,0x33FF00FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],10, 0, 1);
AddStaticPickup(1318,1,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],-1);
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
new empresa3[128];
format(empresa3,sizeof(empresa3),"Empresa a Venda! \n Preco: $%d \n Level Necessario: %d \n Para comprar, Digite: /compraremp.", SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded]);
HouseLabel[h] = Create3DTextLabel(empresa3 ,0x33FF00FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],10, 0, 1);
AddStaticPickup(1272,1,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],-1);
}
else if(SBizzInfo[h][sbOwned] == 1)
{
new empresa4[128];
format(empresa4,sizeof(empresa4),"%s \n Dono: %s \n Extorcao: %s \n Taxa Entrada: $%d. \n Para Entrar, Aperte F.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], BizzInfo[h][bEntranceCost]);
HouseLabel[h] = Create3DTextLabel(empresa4 ,0x33FF00FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],10, 0, 1);
AddStaticPickup(1318,1,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],-1);
}
}
// POE ESSE TIMER NO ONGAMEMODEINIT TAMBEM
SetTimer("Atualizar3DText", 1000, 1);
// no fim do gm cria um public
pawn Code:
forward Atualizar3DText();
public Atualizar3DText()
{
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
new Casa[128];
format(Casa, sizeof(Casa), "Casa a Venda! \n Preco: $%d \n Informacoes: %s \n Nivel Necessario: %d", HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
Update3DTextLabelText(HouseLabel[h], 0x33FF00FF, Casa);
AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
new Casa2[128];
format(Casa2, sizeof(Casa2), "Dono da Casa %s \n Preco Aluguel: $%d \n Descricao: %s \n Para alugar, Digite: /alugarquarto", HouseInfo[h][hOwner], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
Update3DTextLabelText(HouseLabel[h], 0x33FF00FF, Casa2);
AddStaticPickup(1318, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
new empresa[128];
format(empresa,sizeof(empresa),"Empresa a Venda! \n Preco: $%d \n Level Necessario: %d \n Para comprar, Digite: /compraremp.", BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
Update3DTextLabelText(HouseLabel[h], 0x33FF00FF, empresa);
AddStaticPickup(1272,1,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],-1);
}
else if(BizzInfo[h][bOwned] == 1)
{
new empresa1[128];
format(empresa1,sizeof(empresa1),"%s \n Dono: %s \n Extorcao: %s \n Taxa Entrada: $%d. \n Para Entrar, Aperte F.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
Update3DTextLabelText(HouseLabel[h], 0x33FF00FF, empresa1);
AddStaticPickup(1318,1,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],-1);
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
new empresa3[128];
format(empresa3,sizeof(empresa3),"Empresa a Venda! \n Preco: $%d \n Level Necessario: %d \n Para comprar, Digite: /compraremp.", SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded]);
Update3DTextLabelText(HouseLabel[h], 0x33FF00FF, empresa3);
AddStaticPickup(1272,1,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],-1);
}
else if(SBizzInfo[h][sbOwned] == 1)
{
new empresa4[128];
format(empresa4,sizeof(empresa4),"%s \n Dono: %s \n Extorcao: %s \n Taxa Entrada: $%d. \n Para Entrar, Aperte F.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], BizzInfo[h][bEntranceCost]);
Update3DTextLabelText(HouseLabel[h], 0x33FF00FF, empresa4);
AddStaticPickup(1318,1,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],-1);
}
}
}
й assim que eu tenho no meu sv.