Colors in Dialog
#1

I want to store the color code in MySQL and show the dialog list item in that color along with the text (the color code).

I have tried everything from the past 48 hours.

PHP код:
if(listitem == 0)
strmid(Player[playerid][playerPMColor], "33CCFF"010128);
mysql_format(g_SQLquerysizeof(query), "UPDATE `players` SET `ppmcolor` = '%d' WHERE `pname` = '%e'"Player[playerid][playerPMColor], GetName(playerid));
mysql_tquery(g_SQLquery);
if(
listitem == 1)
strmid(Player[playerid][playerNotificationColor], "AA3333"010128); 
PHP код:
format(text2sizeof(text2), "\nPM Color\t{%s}%s\nNotification Color\t{%s}%s"Player[playerid][playerPMColor], Player[playerid][playerPMColor], Player[playerid][playerNotificationColor], Player[playerid][playerNotificationColor]);
    
strcat(texttext2);
    
ShowPlayerDialog(playeridDIALOG_SETTINGSDIALOG_STYLE_TABLIST_HEADERS"Settings"text"Select""Cancel"); 
It works if I remove the Notification list item. As soon as I add the notification list item, It is showing the correct color for that and changes the color for another one and does weird things.

Reply
#2

Thank you. I solved it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)