SetObjectMaterialText
#1

Hi, i've made this object and the timers to swith the text on the objects. It works perfectly several times but when i come near the object it just turns black..



pawn Код:
BlinkText = CreateObject(19462, 1593.76367, -2330.70532, 17.42012,   0.00000, 0.00000, 0.00000);
SetObjectMaterialText(BlinkText, "{FFFFFF}\n\nWELCOME TO SERVER", 0, 90, "Arial Black", 24, 1, 0x000000FF, 1, 1);
SetTimer("TextSwitch", 2000, false);
pawn Код:
public TextSwitch()
{
      SetObjectMaterialText(BlinkText, "\n\nENJOY IN GAME!!!", 0, 90, "Arial Black", 24, 1, 0x000000FF, 1, 1);
      SetTimer("TextBack", 2000, false);
}

public TextBack()
{
      SetObjectMaterialText(BlinkText, "{FFFFFF}\n\nWELCOME TO SERVER", 0, 90, "Arial Black", 24, 1, 0x000000FF, 1, 1);
      SetTimer("TextSwitch", 2000, false);
}
Any help?
Reply
#2

Use ARGB format
0xFF000000
Reply
#3

For background color?

Nvm, i changed it on all
pawn Код:
SetObjectMaterialText(BlinkText, "{FFFFFF}\n\nWELCOME TO SERVER", 0, 90, "Arial Black", 24, 1, 0x000000FF, 0xFF000000, 1);
to black ARGB 0xFF000000 .. Now it does not work at all [/QUOTE]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)