oi alguem poderia me ajudar a fazer um sistema de atualizar 3ds de empresas a cada 2 segundos?
pawn Код:
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(string, sizeof(string), "%s",BizzInfo[h][bMessage]);
Create3DTextLabel(string, 0x00FF7FFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 50, 0);
format(string, sizeof(string), "\nБ Venda");
Create3DTextLabel(string, 0x00FF7FFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 50, 0);
format(string, sizeof(string), "\n\nValor: R$%d",BizzInfo[h][bBuyPrice]);
Create3DTextLabel(string, 0x00FF7FFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 50, 0);
format(string, sizeof(string), "\n\n\nLevel : %d",BizzInfo[h][bLevelNeeded]);
Create3DTextLabel(string, 0x00FF7FFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 50, 0);
format(string, sizeof(string), "\n\n\n\nDigite /compraremp");
Create3DTextLabel(string, 0x00FF7FFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 50, 0);
}
if(BizzInfo[h][bOwned] == 1)
{
format(string, sizeof(string), "%s",BizzInfo[h][bMessage]);
Create3DTextLabel(string, 0x00FF7FFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 50, 0);
format(string, sizeof(string), "\nDono : %s",BizzInfo[h][bOwner]);
Create3DTextLabel(string, 0x00FF7FFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 50, 0);
format(string, sizeof(string), "\n\nGerente : %s",BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost]);
Create3DTextLabel(string, 0x00FF7FFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 50, 0);
format(string, sizeof(string), "\n\n\nEntrada : R$%d",BizzInfo[h][bEntranceCost]);
Create3DTextLabel(string, 0x00FF7FFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 50, 0);
format(string, sizeof(string), "\n\n\n\nLevel : %d",BizzInfo[h][bLevelNeeded]);
Create3DTextLabel(string, 0x00FF7FFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 50, 0);
format(string, sizeof(string), "\n\n\n\n\nDigite /entrar");
Create3DTextLabel(string, 0x00FF7FFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 50, 0);
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
format(string, sizeof(string), "%s",SBizzInfo[h][sbMessage]);
Create3DTextLabel(string, 0x00FF7FFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 50, 0);
format(string, sizeof(string), "\nБ Venda");
Create3DTextLabel(string, 0x00FF7FFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 50, 0);
format(string, sizeof(string), "\n\nValor: R$%d",SBizzInfo[h][sbBuyPrice]);
Create3DTextLabel(string, 0x00FF7FFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 50, 0);
format(string, sizeof(string), "\n\n\nLevel : %d",SBizzInfo[h][sbLevelNeeded]);
Create3DTextLabel(string, 0x00FF7FFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 50, 0);
format(string, sizeof(string), "\n\n\n\nDigite /compraremp");
Create3DTextLabel(string, 0x00FF7FFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 50, 0);
}
if(SBizzInfo[h][sbOwned] == 1)
{
format(string, sizeof(string), "%s",SBizzInfo[h][sbMessage]);
Create3DTextLabel(string, 0x00FF7FFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 50, 0);
format(string, sizeof(string), "\nDono : %s",SBizzInfo[h][sbOwner]);
Create3DTextLabel(string, 0x00FF7FFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 50, 0);
format(string, sizeof(string), "\n\nGerente : %s",SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost]);
Create3DTextLabel(string, 0x00FF7FFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 50, 0);
format(string, sizeof(string), "\n\n\nEntrada : R$%d",SBizzInfo[h][sbEntranceCost]);
Create3DTextLabel(string, 0x00FF7FFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 50, 0);
format(string, sizeof(string), "\n\n\n\nLevel : %d",SBizzInfo[h][sbLevelNeeded]);
Create3DTextLabel(string, 0x00FF7FFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 50, 0);
format(string, sizeof(string), "\n\n\n\n\nDigite /entrar");
Create3DTextLabel(string, 0x00FF7FFF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 50, 0);
}
}
isso dai que eu quero q atualize a cada dois segundos.
Pra que usar tantos format e Create3DText? Existe uma coisa chamada strcat.
Pawn й uma coisa tйcnica, tudo que й tйcnico й aquilo que pode ser aprendido e melhorado, ninguйm aqui й melhor do que ninguйm, se vocк acha que somos melhores simplesmente estude e chegue ao nнvel que vocк quer, nгo й necessбrio criar uma discussгo por causa de uma simples funзгo que й a strcat. Nгo estamos julgando ninguйm, nгo tire conclusхes precipitadas, se vocк precisar da minha ajuda eu te ajudo em qualquer coisa assim como qualquer outra pessoa daqui do fуrum, nгo й necessбrio isso tudo cara
pawn Код:
{
// Delete3DTextLabel(BizzLabel[h]);
if(BizzInfo[h][bOwned] == 0)
{
format(string, sizeof(string), "{FFFFFF}%s\n{33AA33}Essa Empresa Estб б Venda.\n{33AA33}Valor: {FFFFFF}R$%d\n{33AA33}Level: {FFFFFF}%d\n{33AA33}Para comprar digite /compraremp",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
BizzLabel[h] =Create3DTextLabel(string, -1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5, 20, 0);
}
if(BizzInfo[h][bOwned] == 1)
{
format(string, sizeof(string), "{FFFFFF}%s\n{33AA33}Dono: {FFFFFF}%s\n{33AA33}Extorзгo: {FFFFFF}%s\n{33AA33}Entrada: {FFFFFF}R$%d\n{33AA33}Level: {FFFFFF}%d\n{33AA33}Digite /entrar",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = Create3DTextLabel(string, -1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5, 20, 0);
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
// Delete3DTextLabel(SBizzLabel[h]);
if(SBizzInfo[h][sbOwned] == 0)
{
format(string, sizeof(string), "{FFFFFF}%s\n{33AA33}Essa Empresa Estб б Venda.\n{33AA33}Valor: {FFFFFF}R$%d\n{33AA33}Level: {FFFFFF}%d\n{33AA33}Para comprar digite /compraremp",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = Create3DTextLabel(string, -1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5, 20, 0);
}
if(SBizzInfo[h][sbOwned] == 1)
{
format(string, sizeof(string), "{FFFFFF}%s\n{33AA33}Dono: {FFFFFF}%s\n{33AA33}Extorзгo: {FFFFFF}%s\n{33AA33}Entrada: {FFFFFF}R$%d\n{33AA33}Level: {FFFFFF}%d\n{33AA33}Digite /entrar",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = Create3DTextLabel(string, -1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5, 20, 0);
}
}
blz elas tao funcioando mas agora um pedido presicei defini o numero de bizz e sbizz e axo que usei os numeros errados ai os Pickups sumiram, alguem ai sabe o numero certo de bizz e sbizz do sampforever original baxado aki no forum?
Mгe de Deus, 1 3DText por cada vбriavel da house, quando eu achei que jб tinha visto de tudo no SA-MP...