SA-MP Forums Archive
Saving color - 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: Saving color (/showthread.php?tid=625462)



Saving color - ax1 - 02.01.2017

How do I save color into variable?
Код:
color[15];
color="0xa95656AA";
I tried this, but it doesnt work


Re: Saving color - RoboN1X - 02.01.2017

Simply do like this:
Код:
new color;
color = 0xA95656AA;



Re: Saving color - SyS - 02.01.2017

colors are integers not strings 0xa95656AA is a hexadecimal form of a integer


Re: Saving color - SickAttack - 02.01.2017

In runtime, with SSCANF.