SA-MP Forums Archive
Is this possible? - 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: Is this possible? (/showthread.php?tid=559737)



Is this possible? - xAzKingx - 24.01.2015

Is this possible to remove this "A0" from this 093DAD


A0093DAD


If yes, How?


Re: Is this possible? - Schneider - 24.01.2015

pawn Код:
new string[9] = "A0093DAD";
strdel(string, 0, 2);
print(string);
//will print: 093DAD



Re: Is this possible? - Vince - 25.01.2015

I am assuming you want to remove the "red" (or "alpha" in case of object materials) part of a color, in which case:

pawn Код:
0xA0093DAD & ~0xFF000000