save ARGB codes - 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)
+--- Thread: save ARGB codes (
/showthread.php?tid=569652)
save ARGB codes -
iBots - 01.04.2015
How can i save ARGB codes?
Re: save ARGB codes -
Vince - 01.04.2015
Like any other normal number.
Re: save ARGB codes -
Gammix - 01.04.2015
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.