Help with Create3DTextLabel
#1

I can create the Label, but when i format a string with the shop name, it just shows a weird letter like a y with 2 dots, screen below!



Код:
new b_string[128],b_string2[128];

enum buildingInfo{
	Float:b_x,
	Float:b_y,
	Float:b_z,
	Float:b_ix,
	Float:b_iy,
	Float:b_iz,
	b_interior,
	b_name[128]
}

new bInfo[][buildingInfo] = {
{1554.7156,-1675.6240,16.1953,246.783996,63.900199,1003.640625,6,"LSPD"}, // LSPD
{1351.8608,-1757.6541,13.5078,-25.884498,-185.868988,1003.546875,17,"Commerce 24/7"} // Commerce 24/7
};

OnGameModeInit:

for(new i=0; i<sizeof(bInfo); i++)
	{
	    format(b_string,sizeof(b_string),"[ /enter ]\n%s betreten",weiЯ,bInfo[i][b_name]);
	    format(b_string2,sizeof(b_string2),"[ /enter ]\n%s verlassen",weiЯ,bInfo[i][b_name]);
	    CreatePickup(1239,1,bInfo[i][b_x],bInfo[i][b_y],bInfo[i][b_z]);
	    Create3DTextLabel(b_string,weiЯ,bInfo[i][b_x],bInfo[i][b_y],bInfo[i][b_z],50,0,1);
	    CreatePickup(1239,1,bInfo[i][b_ix],bInfo[i][b_iy],bInfo[i][b_iz]);
	    Create3DTextLabel(b_string2,weiЯ,bInfo[i][b_ix],bInfo[i][b_iy],bInfo[i][b_iz],50,0,1);
	}
Reply
#2

Код:
format(b_string,sizeof(b_string),"[ /enter ]\n%s betreten",weiЯ,bInfo[i][b_name]);
'weiЯ' what is this for exactly?

Код:
	    format(b_string,sizeof(b_string),"[ /enter ]\n%s betreten",bInfo[i][b_name]);
	    format(b_string2,sizeof(b_string2),"[ /enter ]\n%s verlassen",bInfo[i][b_name]);
	    CreatePickup(1239,1,bInfo[i][b_x],bInfo[i][b_y],bInfo[i][b_z]);
	    Create3DTextLabel(b_string,weiЯ,bInfo[i][b_x],bInfo[i][b_y],bInfo[i][b_z],50,0,1);
	    CreatePickup(1239,1,bInfo[i][b_ix],bInfo[i][b_iy],bInfo[i][b_iz]);
	    Create3DTextLabel(b_string2,weiЯ,bInfo[i][b_ix],bInfo[i][b_iy],bInfo[i][b_iz],50,0,1);
This should work fine.
Reply
#3

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
Код:
format(b_string,sizeof(b_string),"[ /enter ]\n%s betreten",weiЯ,bInfo[i][b_name]);
'weiЯ' what is this for exactly?

Код:
format(b_string,sizeof(b_string),"[ /enter ]\n%s betreten",bInfo[i][b_name]);
This should work fine.
I will try it, thanks, i will reply in 2 Minutes, "weiЯ" was a color
Reply
#4

Color embedding does not work like that. Read this for more information and feel free to ask should you not understand a part.
Reply
#5

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
Color embedding does not work like that. Read this for more information and feel free to ask should you not understand a part.

Yea i know, i didn't see the color in it, i don't know why it was there, sry, but thanks for the help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)