save ARGB codes
#3

If you want to save ARGB in just one key, use sscanf and save it as a string of this format maybe:
pawn Код:
new str[15];
format(str, sizeof str, "%d %d %d %d", A, R, G, B);
//save it as a string, wheather using INI or SQL
For getting the source back use sscanf for unformating!
pawn Код:
sscanf(str, "dddd" A, R, G,B)
The str here must be the saved string. And you will get your values.
Reply


Messages In This Thread
save ARGB codes - by iBots - 01.04.2015, 13:22
Re: save ARGB codes - by Vince - 01.04.2015, 13:42
Re: save ARGB codes - by Gammix - 01.04.2015, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)