POMOC | Bizz i SBizz LABELI.


Započeo #Dowla, Maj 08, 2013, 16:25:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: BE x8.5
Detaljan opis problema: Ne vide se bizz i sbizz labeli.
Deo skripte: Ako treba.
Neke slike/video za lakse dobivanje pomoci(neobavezno): //

new PropertyString[256];
new Text3D:BizzLabel[MAX_BUSINESSES];
new Text3D:SBizzLabel[MAX_SBUSINESSES];
new SBizzPickup[MAX_SBUSINESSES];
new BizzPickup[MAX_BUSINESSES];
#define MAX_SBUSINESSES 63
#define MAX_BUSINESSES 36


Ovo je u OnGameModeInit:

for(new h = 0; h < sizeof(BizzInfo); h++)
	{
			if(BizzInfo[h][bOwned] == 0)
			{
			    format(PropertyString,sizeof(PropertyString),"[%s] - Na prodaju\nLevel: %d - Cjena: %d\n Da kupite kucajte {FFFFFF}/buybiz",BizzInfo[h][bMessage],BizzInfo[h][bLevelNeeded],BizzInfo[h][bBuyPrice]);
				BizzLabel[h] = Create3DTextLabel(PropertyString ,0xFF80C0C8 ,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20, 0, 1);
				BizzPickup[h] = CreateDynamicPickup(1272,1,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);

			}
			else if(BizzInfo[h][bOwned] == 1)
			{
				format(PropertyString,sizeof(PropertyString),"[%s] - Vlasnik: %s\nReket: %s - Level: %d\n Da udjete kucajte {FFFFFF}/enter",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bExtortion], BizzInfo[h][bLevelNeeded]);
				BizzLabel[h] = Create3DTextLabel(PropertyString ,0xFF80C0C8,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20, 0, 1);
				BizzPickup[h] = CreateDynamicPickup(1318, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
			}
	}
	for(new h = 0; h < sizeof(SBizzInfo); h++)
	{
		if(SBizzInfo[h][sbOwned] == 0)
		{
			format(PropertyString,sizeof(PropertyString),"[%s] - Na prodaju\nLevel: %d - Cjena: %d\n Da kupite kucajte {FFFFFF}/buysbiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbBuyPrice]);
			SBizzLabel[h] = Create3DTextLabel(PropertyString ,0xFF80C0C8,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20, 0, 1);
            SBizzPickup[h] = CreateDynamicPickup(1272, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
		}
		else if(SBizzInfo[h][sbOwned] == 1)
		{
			format(PropertyString,sizeof(PropertyString),"[%s]\n {F3FF02}Vlasnik: "#COL_WHITE"%s , {F3FF02}Reket: "#COL_WHITE"%s\n {F3FF02}Level: "#COL_WHITE"%d ",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], SBizzInfo[h][sbLevelNeeded]);
			SBizzLabel[h] = Create3DTextLabel(PropertyString , 0x33CCFFAA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20, 0, 1);
			SBizzPickup[h] = CreateDynamicPickup(1318, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
		}
	}



I evo ti ceo OnPropTextDrawUpdate:

forward OnPropTextdrawUpdate();
public OnPropTextdrawUpdate()
{
	for(new h = 0; h < sizeof(HouseInfo); h++)
	{
		if(HouseInfo[h][hOwned] == 0)
		{
                Delete3DTextLabel(HouseLabel[h]);
			    format(PropertyString,sizeof(PropertyString),"{0ed400}Kuca na Prodaju!\nBroj: %d\n{0ed400}Vrsta: {FFFFFF}%s\n{0ed400}Level: {FFFFFF}%d \n{0ed400}Cena:{FFFFFF} $%d \n{0ed400}Adresa Kuce: {FFFFFF}%s\n{0ed400}Da kupite kucu \n{FFFFFF}kucajte\n{FFFFFF}/buyhouse",h, HouseInfo[h][hDiscription],HouseInfo[h][hLevel],HouseInfo[h][hValue],UlicaKuce(h));
				HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FF40C8,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15,0,1);
				HousePickup[h] = CreateDynamicPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
	            CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 31, -1, -1, -1, -1, 100.0);
			}

		else if(HouseInfo[h][hOwned] == 1)
		{
            Delete3DTextLabel(HouseLabel[h]);
			format(PropertyString,sizeof(PropertyString),"Opis: %s \nVlasnik kuce: %s \nCena: $%d | Level: %d | Neaktivnost: %d\n Kucni Broj: %d \n Cena Rentanja: $%d \n /rentroom.",HouseInfo[h][hDiscription],HouseInfo[h][hOwner],HouseInfo[h][hValue],HouseInfo[h][hLevel],HouseInfo[h][hTimer],HouseInfo[h][hWorld], HouseInfo[h][hRent]);
			HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFC8,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15,0,1);
			HousePickup[h] = CreateDynamicPickup(1272, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
        	CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 32, -1, -1, -1, -1, 100.0);
		}
	}
    for(new h = 0; h < sizeof(StanInfo); h++)
	{
		if(StanInfo[h][sOwned] == 0)
		{
                Delete3DTextLabel(StanLabel[h]);
			    format(PropertyString,sizeof(PropertyString),"{6EF83C}Stan na Prodaju!\nBroj: %d\n{6EF83C}Level: {FFFFFF}%d \n{6EF83C}Cena:{FFFFFF} $%d \n{6EF83C}Vrsta: {FFFFFF}%s\n{6EF83C}Za kupovinu idite u Stambeno",h ,StanInfo[h][sLevel],StanInfo[h][sValue],StanInfo[h][sDiscription]);
				StanLabel[h] = Create3DTextLabel(PropertyString ,0x9EC73DAA,StanInfo[h][sEntrancex], StanInfo[h][sEntrancey], StanInfo[h][sEntrancez],30, 0, 1);

			}
		else if(StanInfo[h][sOwned] == 1)
		{
            Delete3DTextLabel(StanLabel[h]);
			format(PropertyString,sizeof(PropertyString),"Vlasnik stana: %s\nBroj: %d\nLevel: %d", StanInfo[h][sOwner],h ,StanInfo[h][sLevel]);
			StanLabel[h] = Create3DTextLabel(PropertyString ,0x00C2ECFF,StanInfo[h][sEntrancex], StanInfo[h][sEntrancey], StanInfo[h][sEntrancez],30, 0, 1);
		}
	}
	for(new h = 0; h < sizeof(BizzInfo); h++)
	{
		if(BizzInfo[h][bOwned] == 0)
		{
		    Delete3DTextLabel(BizzLabel[h]);
		    format(PropertyString,sizeof(PropertyString),""#COL_WHITE"[%s]\n"#COL_SVPLAVA"Firma na prodaju.\n "#COL_SVPLAVA"Level: "#COL_WHITE"%d "#COL_SVPLAVA"| Cijena: "#COL_WHITE"$%d\n "#COL_SVPLAVA"Da kupite: "#COL_WHITE"/buybiz",BizzInfo[h][bMessage], BizzInfo[h][bLevelNeeded], BizzInfo[h][bBuyPrice]);
			BizzLabel[h] = Create3DTextLabel(PropertyString ,0x33CCFFAA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20, 0, 1);
		}
		else if(BizzInfo[h][bOwned] == 1)
		{
		    Delete3DTextLabel(BizzLabel[h]);
			format(PropertyString,sizeof(PropertyString),"[%s]\n {F3FF02}Vlasnik: "#COL_WHITE"%s , {F3FF02}Reket: {FFFFFF}%s\n {F3FF02}Level: {FFFFFF}%d\n {F3FF02}Ulaz: {FFFFFF}/enter.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bExtortion], BizzInfo[h][bLevelNeeded]);
			BizzLabel[h] = Create3DTextLabel(PropertyString ,0x33CCFFAA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20, 0, 1);
		}
	}
	for(new h = 0; h < sizeof(SBizzInfo); h++)
	{
		if(SBizzInfo[h][sbOwned] == 0)
		{
		    Delete3DTextLabel(SBizzLabel[h]);
			format(PropertyString,sizeof(PropertyString),""#COL_WHITE"[%s]\n"#COL_SVPLAVA"Firma na prodaju.\n "#COL_SVPLAVA"Level: "#COL_WHITE"%d "#COL_SVPLAVA"| Cijena: "#COL_WHITE"%d\n "#COL_SVPLAVA"Da kupite: "#COL_WHITE"/buybiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbLevelNeeded], SBizzInfo[h][sbBuyPrice]);
			SBizzLabel[h] = Create3DTextLabel(PropertyString ,0x33CCFFAA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20, 0, 1);
		}
		else if(SBizzInfo[h][sbOwned] == 1)
		{
		    Delete3DTextLabel(SBizzLabel[h]);
			format(PropertyString,sizeof(PropertyString),"[%s]\n {F3FF02}Vlasnik: "#COL_WHITE"%s , {F3FF02}Reket: "#COL_WHITE"%s\n {F3FF02}Level: "#COL_WHITE"%d",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], SBizzInfo[h][sbLevelNeeded]);
			SBizzLabel[h] = Create3DTextLabel(PropertyString ,0x33CCFFAA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20, 0, 1);
		}
	}

return 1;
}
Poslednja Izmena: Maj 08, 2013, 16:40:22 POSLE PODNE od Mark_Samp

Ma dobar je i property string, ali nesto drugo ga zeza ! :/