SA-MP Forums Archive
3D Text Label - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3D Text Label (/showthread.php?tid=381239)



3D Text Label - marine - 28.09.2012

So for whatever reason, probably a stupid one, I can't get my business 3D text labels to show up.
Код:
new Text3D: biz1[MAX_PLAYERS];
Код:
	new PropertyString[256];
	for(new h = 0; h < sizeof(BizzInfo); h++)
	{
		if(BizzInfo[h][bOwned] == 0)
		{
		    format(PropertyString,sizeof(PropertyString),"For Sale! \n %s \n Bizz ID: %d \n Price: $%d \n Level Needed: %d \n To Buy This, Type /buybiz",BizzInfo[h][bMessage], BizzInfo[h][bBizId], BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
			biz1[h] = Create3DTextLabel(PropertyString ,COLOR_WHITE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
			return 1;
		}
		else if(BizzInfo[h][bOwned] == 1)
		{
			format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n Bizz ID: %d \n Extortion: %s \n Entering Fee: $%d. \n To Enter This, press enter.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bBizId], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
			biz1[h] = Create3DTextLabel(PropertyString ,COLOR_WHITE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
                        return 1;
		}
	}
Any help is greatly appreciated!


Re: 3D Text Label - stabker - 28.09.2012

I see just one error, is MAX_PLAYERS in biz1. Instead MAX_PLAYERS should be the number of businesses.

(Sorry for my bad English).