[AJUDA]
#5

alguem saberia como eu faзo para esse cуdigo nгo bugar os cуdigos que ficam abaixo dele? eu botei ele no fim do Public OnGameModeInit para poder atualizar com os comandos,se eu nгo colocar no fim, ele substitui todos os cуdigos que estгo abaixo dele,que eu saiba neste public sу existe 1 return 1; que fica no final de tudo....

Cуdigo :

Код:
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);
          }
      }
Espero Resposta. Obrigado
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: 2 Guest(s)