SA-MP Forums Archive
Use colors within menus - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Use colors within menus (/showthread.php?tid=244519)



Use colors within menus - usrb1n - 27.03.2011

Hello, I'm trying to use some SA-MP menus (for the first time) and I attempted to use some colors for header or items but I can't.


I used something like this
pawn Код:
new Menu:tmenu;

tmenu = CreateMenu("Test menu", 0, 200.0, 100.0, 150.0, 150.0);
new string[64];
format(string,sizeof(string),"{FF0000} Text text text");
SetMenuColumnHeader(tmenu, 0, string);
return 1;



    if (strcmp("/mn2", cmdtext, true, 10) == 0)
    {
        ShowMenuForPlayer(tmenu, playerid);
        TogglePlayerControllable(playerid,0);
        return 1;
    }

When I use /mn2 in game I got this : "?FF0000$ Text text text" with normal color. Is there any way to use colors?