SetObjectMaterialText, ARGB color ?
#1

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 ?
Reply
#2

https://sampwiki.blast.hk/wiki/SetObjectMaterial
PHP код:
The object color to set, as an integer or hex in ARGB color formatUsing 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
Reply
#3

Fixed, thank's you Abyss.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)