Portal SAMP
[Ajuda] Textdraws assentos - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] Textdraws assentos (/showthread.php?tid=5081)



Textdraws assentos - desconhecido123 - 20/08/2025

Boa tarde, gostaria de uma ajuda para colocar assentos nas textdraws, pós quando coloco ela fica invisilvel 

format(str, sizeof str, "Inventário_de:_~b~~h~%s_~w~Itens:_~b~~h~%d/75", PlayerName(playerid), itens);
PlayerTextDrawSetString(playerid, invText[playerid][5], str);

aqui está o codigo, já tentei o FixText mais não deu certo


RE: Textdraws assentos - Aranha - 20/08/2025

(20/08/2025 14:12)desconhecido123 Escreveu: Boa tarde, gostaria de uma ajuda para colocar assentos nas textdraws, pós quando coloco ela fica invisilvel 

format(str, sizeof str, "Inventário_de:_~b~~h~%s_~w~Itens:_~b~~h~%d/75", PlayerName(playerid), itens);
PlayerTextDrawSetString(playerid, invText[playerid][5], str);

aqui está o codigo, já tentei o FixText mais não deu certo

Código:
TextDraw nativo do SA-MP não aceita acentuação diretamente
á = \xA0

é = \x82

í = \xA1

ó = \xA2

ú = \xA3

ç = \x87

ã = \xC6

õ = \xE4

Tente assim e compile
format(str, sizeof str, "Invent\xA0rio de: ~b~~h~%s ~w~Itens: ~b~~h~%d/75", PlayerName(playerid), itens);



RE: Textdraws assentos - desconhecido123 - 20/08/2025

deu certo mais os assentos esta errado ex: \aA0 está ë não estou encontrado "á"

(20/08/2025 20:28)Aranha Escreveu:
(20/08/2025 14:12)desconhecido123 Escreveu: Boa tarde, gostaria de uma ajuda para colocar assentos nas textdraws, pós quando coloco ela fica invisilvel 

format(str, sizeof str, "Inventário_de:_~b~~h~%s_~w~Itens:_~b~~h~%d/75", PlayerName(playerid), itens);
PlayerTextDrawSetString(playerid, invText[playerid][5], str);

aqui está o codigo, já tentei o FixText mais não deu certo

Código:
TextDraw nativo do SA-MP não aceita acentuação diretamente
á = \xA0

é = \x82

í = \xA1

ó = \xA2

ú = \xA3

ç = \x87

ã = \xC6

õ = \xE4

Tente assim e compile
format(str, sizeof str, "Invent\xA0rio de: ~b~~h~%s ~w~Itens: ~b~~h~%d/75", PlayerName(playerid), itens);

ver minha respota


RE: Textdraws assentos - xbruno1000x - 21/08/2025

o FixText geralmente funciona muito bem, como você realizou a implementação?