13.11.2018, 23:40
I've used this code:
To try and replicate your problem, and this is the result I got:
So it looks that everything is working fine.
I can see that you are outputting {AFFFFFF} which isn't a valid embedded RGB color in SAMP (7 digits), that may be your problem. I'd rather store the users PM color as an integer value by converting the hex string to int and simply using {%06x} in format()
Код:
CMD:test(playerid) { new text[300] = "Setting\tInformation\nStatus\tCivilian\nPM\t{33AA33}ON\nMusic\t{33AA33}ON\nCar HUD\t{33AA33}ON\nHit Effect Sound\t{33AA33}ON"; new text2[128] = "\nPM Color Code\t{00FF00}00FF00\nNotification Color Code\t{FF0000}FF0000"; strcat(text, text2); ShowPlayerDialog(playerid, DIALOG_DUMMY, DIALOG_STYLE_TABLIST_HEADERS, "Settings", text, "Select", "Cancel"); return 1; }
So it looks that everything is working fine.
I can see that you are outputting {AFFFFFF} which isn't a valid embedded RGB color in SAMP (7 digits), that may be your problem. I'd rather store the users PM color as an integer value by converting the hex string to int and simply using {%06x} in format()