19.09.2015, 18:13
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
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.
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");
}
Hope i made this clear. Thanks in advance.