Need help to diplay й,а,@... into textdraw
#1

Hi all,

i need help,

i would like to display those letters ( й,а,и,@ ... ) into thexdraw, but when i simply write the caract it doesn't work,

so i tried use HTML name (É ...) doesn't work, also tried ASCII ( É ) stil not working

Do someone know the way to use them?

Thank You

Max
Reply
#2

Not possible, since the fonts are saved in texture files;



Reply
#3

If they are save in texture we can use them

Max
Reply
#4

Totaly possible, i found this

http://www.conseil-creation.com/info...exadecimal.php

use 0x + HEXA code of charactere
Reply
#5

no you dont get it,
the fonts in SAMP use the textures above,
the only chars it supports is the ones in the pics posted above.

the textdraws can only show chars from the fonts textures,

what you showed was a link to the ASCII char set in which the
font textures above do not fully support thus the text draws will not either.
Reply
#6

You are right, ASCII don't work,

but i am sure we can siplay й,и,а ...

look a this



Just use ~k~~TOGGLE_SUBMISSIONS~


And this, i got on samp forum

Код:
stock ConvertToGameText(in[])
{
	new string[256];
	for(new i = 0; in[i]; ++i)
	{
		string[i] = in[i];
		switch(string[i])
		{
			case 0xC0 .. 0xC3: string[i] -= 0x40;
			case 0xC7 .. 0xC9: string[i] -= 0x42;
			case 0xD2 .. 0xD5: string[i] -= 0x44;
			case 0xD9 .. 0xDC: string[i] -= 0x47;
			case 0xE0 .. 0xE3: string[i] -= 0x49;
			case 0xE7 .. 0xEF: string[i] -= 0x4B;
			case 0xF2 .. 0xF5: string[i] -= 0x4D;
			case 0xF9 .. 0xFC: string[i] -= 0x50;
			case 0xC4, 0xE4: string[i] = 0x83;
			case 0xC6, 0xE6: string[i] = 0x84;
			case 0xD6, 0xF6: string[i] = 0x91;
			case 0xD1, 0xF1: string[i] = 0xEC;
			case 0xDF: string[i] = 0x96;
			case 0xBF: string[i] = 0xAF;
		}
	}
	return string;
}
Try

GameTextForPlayer(playerid,ConvertToGameText("й - и - а"),3000,6);

I only need the exact code of those letter

Return by ConvertToGameText

I tried with print but u get _ or "space" я ...

Thank You


Max
Reply
#7

Up?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)