SA-MP Forums Archive
3dtext label not showing - 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: 3dtext label not showing (/showthread.php?tid=582668)



3dtext label not showing - PowerF - 22.07.2015

Код:
				new labelstring[200];
				switch(houseStuff[i][house_bought])
				{
					case 0: // For Sale
					{
						houseStuff[i][label] = Create3DTextLabel("{58D3F7}[FOR SALE]", COLOR_WHITE, houseStuff[i][houseX], houseStuff[i][houseY], houseStuff[i][houseZ] + 0.2, 25.0, 0, 1);
						format(labelstring, sizeof(labelstring), "{FFFFFF}/buyhouse {FFDC2E}%i {FFFFFF}\nPrice: {FFDC2E}$%i", houseStuff[i][house_id], houseStuff[i][house_price]);
					}
					case 1: // Owned
					{
						houseStuff[i][label] = Create3DTextLabel("{58D3F7}[ALT TO ENTER]", COLOR_WHITE, houseStuff[i][houseX], houseStuff[i][houseY], houseStuff[i][houseZ] + 0.2, 25.0, 0, 1);
						format(labelstring, sizeof(labelstring), "{FFFFFF}Owner: {FFDC2E}%s\n{FFFFFF}House ID: {FFDC2E}%i\n{FFFFFF}Price: {FFDC2E}$%i", houseStuff[i][house_owner], houseStuff[i][house_id], houseStuff[i][house_price]);
					}
				}
why its not showing?


Re: 3dtext label not showing - simo0000 - 22.07.2015

Quote:
Originally Posted by PowerF
Посмотреть сообщение
Код:
				new labelstring[200];
				switch(houseStuff[i][house_bought])
				{
					case 0: // For Sale
					{
						houseStuff[i][label] = CreateDynamic3DTextLabel("{58D3F7}[FOR SALE]", COLOR_WHITE, houseStuff[i][houseX], houseStuff[i][houseY], houseStuff[i][houseZ] + 0.2, 25.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 0, -1, 25.0);

						format(labelstring, sizeof(labelstring), "{FFFFFF}/buyhouse {FFDC2E}%i {FFFFFF}\nPrice: {FFDC2E}$%i", houseStuff[i][house_id], houseStuff[i][house_price]);
					}
					case 1: // Owned
					{
						houseStuff[i][label] = ("{58D3F7}[ALT TO ENTER]", COLOR_WHITE, houseStuff[i][houseX], houseStuff[i][houseY], houseStuff[i][houseZ] + 0.2, 25.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 0, -1, 25.0);
						format(labelstring, sizeof(labelstring), "{FFFFFF}Owner: {FFDC2E}%s\n{FFFFFF}House ID: {FFDC2E}%i\n{FFFFFF}Price: {FFDC2E}$%i", houseStuff[i][house_owner], houseStuff[i][house_id], houseStuff[i][house_price]);
					}
				}
try this


Re: 3dtext label not showing - Isolated - 22.07.2015

Create3DTextLabel(). You're only formatting a string. Not doing anything with it.


Re: 3dtext label not showing - Beckett - 22.07.2015

What doesn't appear, the formation?