SA-MP Forums Archive
Help with Create3DTextLabel - 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: Help with Create3DTextLabel (/showthread.php?tid=647774)



Help with Create3DTextLabel - ImTobi - 10.01.2018

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);
	}



Re: Help with Create3DTextLabel - Beckett - 10.01.2018

Код:
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.


Re: Help with Create3DTextLabel - ImTobi - 10.01.2018

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


Re: Help with Create3DTextLabel - Beckett - 10.01.2018

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


Re: Help with Create3DTextLabel - ImTobi - 10.01.2018

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!