//Casas for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 0) { format(PropertyString,sizeof(PropertyString),"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(PropertyString ,0x33FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10, 0, 1); HousePickup[h] = AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); } if(HouseInfo[h][hOwned] == 1) { format(PropertyString,sizeof(PropertyString),"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(PropertyString ,0x33FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10, 0, 1); HousePickup[h] = AddStaticPickup(1318, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); } } //Bizz for(new h = 0; h < sizeof(BizzInfo); h++) { if(BizzInfo[h][bOwned] == 0) { format(PropertyString,sizeof(PropertyString),"Empresa a Venda! \n Preco: $%d \n Level Necessario: %d \n Para comprar, Digite: /compraremp", BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]); BizzLabel[h] = Create3DTextLabel(PropertyString ,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) { format(PropertyString,sizeof(PropertyString),"%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]); BizzLabel[h] = Create3DTextLabel(PropertyString ,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); } } //Sbizz for(new h = 0; h < sizeof(SBizzInfo); h++) { if(SBizzInfo[h][sbOwned] == 0) { format(PropertyString,sizeof(PropertyString),"Empresa a Venda! \n Preco: $%d \n Level Necessario: %d \n Para comprar, Digite: /compraremp.", SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded]); SBizzLabel[h] = Create3DTextLabel(PropertyString ,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) { format(PropertyString,sizeof(PropertyString),"%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]); SBizzLabel[h] = Create3DTextLabel(PropertyString ,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); } }
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);
}
}
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);
}
}
house label
nem era nгo,o erro era que substiuia o resto do ongamemodeinit,eu coloquei no final e agora estб perfeito,mesmo assim obrigado
|
for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 0) { format(PropertyString,sizeof(PropertyString),"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(PropertyString ,0x33FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10, 0, 1); HousePickup[h] = AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); } if(HouseInfo[h][hOwned] == 1) { format(PropertyString,sizeof(PropertyString),"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(PropertyString ,0x33FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10, 0, 1); HousePickup[h] = AddStaticPickup(1318, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); } } //Bizz for(new h = 0; h < sizeof(BizzInfo); h++) { if(BizzInfo[h][bOwned] == 0) { format(PropertyString,sizeof(PropertyString),"Empresa a Venda! \n Preco: $%d \n Level Necessario: %d \n Para comprar, Digite: /compraremp", BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]); BizzLabel[h] = Create3DTextLabel(PropertyString ,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) { format(PropertyString,sizeof(PropertyString),"%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]); BizzLabel[h] = Create3DTextLabel(PropertyString ,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); } } //Sbizz for(new h = 0; h < sizeof(SBizzInfo); h++) { if(SBizzInfo[h][sbOwned] == 0) { format(PropertyString,sizeof(PropertyString),"Empresa a Venda! \n Preco: $%d \n Level Necessario: %d \n Para comprar, Digite: /compraremp.", SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded]); SBizzLabel[h] = Create3DTextLabel(PropertyString ,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) { format(PropertyString,sizeof(PropertyString),"%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]); SBizzLabel[h] = Create3DTextLabel(PropertyString ,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); } }