ShowPlayerDialog getting weird
#3

I've used this code:
Код:
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;
}
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()
Reply


Messages In This Thread
Color Problems in ShowPlayerDialog - by JaskaranSingh - 13.11.2018, 16:17
Re: ShowPlayerDialog getting weird - by JaskaranSingh - 13.11.2018, 18:43
Re: ShowPlayerDialog getting weird - by dotSILENT - 13.11.2018, 23:40
Re: ShowPlayerDialog getting weird - by JaskaranSingh - 14.11.2018, 08:59
Re: ShowPlayerDialog getting weird - by dotSILENT - 14.11.2018, 10:05
Re: ShowPlayerDialog getting weird - by JaskaranSingh - 14.11.2018, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)