save ARGB codes
#1

How can i save ARGB codes?
Reply
#2

Like any other normal number.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)