Color in a format string
#1

Hey guys i have a little problem and wondering if anyone can help me.

I have a achievement script which in my dialog i use %s to show if the achievement as been achieved or not. but i would like this to be red if not achieved and green if achieved

pawn Код:
if(GetPVarInt(id, string) == 0)
        {
            format(string2, sizeof(string2), "Not Completed");
        }
        if(GetPVarInt(id, string) == 1)
        {
            format(string2, sizeof(string2), "Completed");
        }
I was wondering in my gm when i do a string like "Parkour Master: %s" it will say be green if achieved and red if not.

Hope i made this clear. Thanks in advance.
Reply


Messages In This Thread
Color in a format string - by morris91 - 19.09.2015, 18:13
Re: Color in a format string - by jlalt - 19.09.2015, 18:30
Re: Color in a format string - by Vince - 19.09.2015, 22:12
Re: Color in a format string - by xVIP3Rx - 20.09.2015, 04:31

Forum Jump:


Users browsing this thread: 1 Guest(s)