3dtext label not showing
#1

Код:
				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?
Reply
#2

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
Reply
#3

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

What doesn't appear, the formation?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)