SetObjectmaterialtext
#8

Код:
RGBAToARGB(color)
{
	    new alpha = color & 0xFF;
	    return ((color >>> 8) | (alpha << 24));

}
Код:
new smthobject = CreateDynamicObject(19370, X, Y, Z,   0.00000, 0.00000, 90.000);
new mynumber = HexToInt( "0xFE0000AA");
SetDynamicObjectMaterialText(smthobject, 0,"Test", 20,"Arial", 15, 0,RGBAToARGB(mynumber),RGBAToARGB(0),0);
printf("%d", mynumber);
As you see i try red color make object invisible and red text and everything is working, but if i use in other server difference is i take everything from player variables

Код:
SetDynamicObjectMaterialText(smthobject, 0,"Test", 20,"Arial", 15, 0,RGBAToARGB(Yournumber[ playerid ]),RGBAToARGB(Secondnumber[ playerid ]),0);
printf("%d", Yournumber[ playerid ]);
printf("%d",Secondnumber[ playerid ]);
Yournumber[ playerid ] i make print i get number same as in there where is working and secondnumber[ playerid ] i get 0 as i want to get. What holly shit here is? when i use other colors everything is work
Reply


Messages In This Thread
SetObjectmaterialtext - by ScIrUsna - 20.04.2016, 10:37
Re: SetObjectmaterialtext - by mongi - 20.04.2016, 18:02
Re: SetObjectmaterialtext - by thaKing - 20.04.2016, 18:11
Re: SetObjectmaterialtext - by ScIrUsna - 20.04.2016, 18:35
Re: SetObjectmaterialtext - by J0sh... - 20.04.2016, 18:38
Re: SetObjectmaterialtext - by ScIrUsna - 20.04.2016, 18:44
Re: SetObjectmaterialtext - by J0sh... - 20.04.2016, 18:46
Re: SetObjectmaterialtext - by ScIrUsna - 20.04.2016, 18:57
Re: SetObjectmaterialtext - by J0sh... - 20.04.2016, 19:01
Re: SetObjectmaterialtext - by ScIrUsna - 20.04.2016, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)