Burgershot
[Server] Colour Embedding Issue - Printable Version

+- Burgershot (https://www.burgershot.gg)
+-- Forum: SA-MP (https://www.burgershot.gg/forumdisplay.php?fid=3)
+--- Forum: Support (https://www.burgershot.gg/forumdisplay.php?fid=12)
+--- Thread: [Server] Colour Embedding Issue (/showthread.php?tid=1574)



Colour Embedding Issue - Torque - 2021-01-21

It seems that there's a bug with colour embedding, whether it be dialogs or chat text.

It seems the colour is "leaking" into the next word in which a colour has already been set for.

[Image: unknown.png]


RE: Colour Embedding Issue - Pinch - 2021-01-22

Huh? Show the code please..colors are kept after \n fyi


RE: Colour Embedding Issue - Torque - 2021-01-22

Code:
CMD:colortest(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_COLORTEST, DIALOG_STYLE_MSGBOX, "{DCC176}Community - Accepting the rules", "{FFFFFF}When registering this account on the server, you need to\nconfirm that you have read the rules of the community.\nCheck them out on this link: {4682b4}www.adress.com/rules", "confirm", "back");
}


The multiple colours was just a test. This script here, the w (At the start of www.) is white, instead of steel blue as defined.


RE: Colour Embedding Issue - Markski - 2021-01-22

Weird. Try putting the colour embedding before the space and see if that "fixes" it