SetObjectMaterialText, ARGB 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: SetObjectMaterialText, ARGB color ? (
/showthread.php?tid=622161)
SetObjectMaterialText, ARGB color ? -
djoudjou - 19.11.2016
Hi,
I want to make a tag system. I have a list of colors pre-defined in my script like this :
Код:
// MODIFY COLOR OF THE TAG :
SetDynamicObjectMaterialText(GraffitiData[id][graffitiObject], 0, GraffitiData[id][graffitiText], OBJECT_MATERIAL_SIZE_256x128, GraffitiData[id][graffitiFont], 24, 1, GraffitiData[id][graffitiColor], 0, 0);
On my server, the color is not the same like on the web. Why ?
Re: SetObjectMaterialText, ARGB color ? -
AbyssMorgan - 19.11.2016
https://sampwiki.blast.hk/wiki/SetObjectMaterial
PHP код:
The object color to set, as an integer or hex in ARGB color format. Using 0 keeps the existing material color.
Your colors are in the format RGBA
Change your colors or use RGBAToARGB(color);
https://sampforum.blast.hk/showthread.php?tid=590770
Re: SetObjectMaterialText, ARGB color ? -
djoudjou - 19.11.2016
Fixed, thank's you Abyss.