Jump to content
  • 0

Culoare Text draw


Mark S.

Question

Problema intalnita (descriere): am un text draw negru si as dori sa il fac alb
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul:

    text = TextDrawCreate(493.000000, 156.000000, "hud:radardisc");//color
    TextDrawBackgroundColor(text, 0xFFFFFFC8);
    TextDrawFont(text, 4);
    TextDrawLetterSize(text, 0.500000, 1.000000);
    TextDrawColor(text, 0xFFFFFFC8);
    TextDrawSetOutline(text, 0);
    TextDrawSetProportional(text, 1);
    TextDrawSetShadow(text, 0);
    TextDrawUseBox(text, 1);
    TextDrawBoxColor(text, 1);
    TextDrawTextSize(text, 27.000000, 33.000000);
    TextDrawSetSelectable(text, 0);

    text2 = TextDrawCreate(493.000000, 423.000000, "hud:radardisc");//color
    TextDrawBackgroundColor(text2, 0xFFFFFFC8);
    TextDrawFont(text2, 4);
    TextDrawLetterSize(text2, 0.500000, 1.000000);
    TextDrawColor(text2, 0xFFFFFFC8);
    TextDrawSetOutline(text2, 0);
    TextDrawSetProportional(text2, 1);
    TextDrawSetShadow(text2, 0xFFFFFFC8);
    TextDrawUseBox(text2, 1);
    TextDrawBoxColor(text2, 0xFFFFFFC8);
    TextDrawTextSize(text2, 27.000000, -33.000000);
    TextDrawSetSelectable(text2, 0);

Imagini / Video (optional): http://i.imgur.com/jiatMIV.png
Ati incercat sa rezolvati singur?: pai am pus peste tot culoarea alb

Link to comment
Share on other sites

18 answers to this question

Recommended Posts

  • 0

Trebuie doar sa ii schimbi 

TextDrawColor(text1, 0xFFFFFFC8);

TextDrawColor(text2, 0xFFFFFFC8);

Iata:

text = TextDrawCreate(493.000000, 156.000000, "hud:radardisc");//color
  TextDrawBackgroundColor(text, 0xFFFFFFC8);
  TextDrawFont(text, 4);
  TextDrawLetterSize(text, 0.500000, 1.000000);
  TextDrawColor(text, 0xFFFFFF00);
  TextDrawSetOutline(text, 0);
  TextDrawSetProportional(text, 1);
  TextDrawSetShadow(text, 0);
  TextDrawUseBox(text, 1);
  TextDrawBoxColor(text, 1);
  TextDrawTextSize(text, 27.000000, 33.000000);
  TextDrawSetSelectable(text, 0);

  text2 = TextDrawCreate(493.000000, 423.000000, "hud:radardisc");//color
  TextDrawBackgroundColor(text2, 0xFFFFFFC8);
  TextDrawFont(text2, 4);
  TextDrawLetterSize(text2, 0.500000, 1.000000);
  TextDrawColor(text2, 0xFFFFFF00);
  TextDrawSetOutline(text2, 0);
  TextDrawSetProportional(text2, 1);
  TextDrawSetShadow(text2, 0xFFFFFF00);
  TextDrawUseBox(text2, 1);
  TextDrawBoxColor(text2, 0xFFFFFF00);
  TextDrawTextSize(text2, 27.000000, -33.000000);
  TextDrawSetSelectable(text2, 0);

242086.png

Link to comment
Share on other sites

  • 0

 

Trebuie doar sa ii schimbi 

TextDrawColor(text1, 0xFFFFFFC8);

TextDrawColor(text2, 0xFFFFFFC8);

Iata:

text = TextDrawCreate(493.000000, 156.000000, "hud:radardisc");//color
  TextDrawBackgroundColor(text, 0xFFFFFFC8);
  TextDrawFont(text, 4);
  TextDrawLetterSize(text, 0.500000, 1.000000);
  TextDrawColor(text, 0xFFFFFF00);
  TextDrawSetOutline(text, 0);
  TextDrawSetProportional(text, 1);
  TextDrawSetShadow(text, 0);
  TextDrawUseBox(text, 1);
  TextDrawBoxColor(text, 1);
  TextDrawTextSize(text, 27.000000, 33.000000);
  TextDrawSetSelectable(text, 0);

  text2 = TextDrawCreate(493.000000, 423.000000, "hud:radardisc");//color
  TextDrawBackgroundColor(text2, 0xFFFFFFC8);
  TextDrawFont(text2, 4);
  TextDrawLetterSize(text2, 0.500000, 1.000000);
  TextDrawColor(text2, 0xFFFFFF00);
  TextDrawSetOutline(text2, 0);
  TextDrawSetProportional(text2, 1);
  TextDrawSetShadow(text2, 0xFFFFFF00);
  TextDrawUseBox(text2, 1);
  TextDrawBoxColor(text2, 0xFFFFFF00);
  TextDrawTextSize(text2, 27.000000, -33.000000);
  TextDrawSetSelectable(text2, 0);

Daca pun asa se face transparent, eu vreau alb...

 

 

Te-as intreba ce semnifica acel textdraw :)) dar uite,  ca sa il faci alb modifica

TextDrawColor
de la ambele in loc de 0xFFFFFFC8 sa pui 0xFFFFFFFF si trebuie sa arate ceva gen :
 TextDrawColor(text, 0xFFFFFFFF);

daca pun asa se face negru

 

PS: textdraw-ul este de la un telefon.

Edited by Selby
Link to comment
Share on other sites

  • 0

 

Fiindca vine asa:

0xFFFFFFAA

Deci pe scurt pui 0x[codul culorii in cazul tau alb]AA.

Fara acest cot nu merge.

 TextDrawColor(text, 0xFFFFFFAA);

tot negru este acum.

 

Am observat ca box color este de vina si am pus box color  0xFFFFFFAA si este transparent cum il fac sa fie alb?

Edited by Selby
Link to comment
Share on other sites

  • 0

pai acesta este text drawul dar este pe negru si cum il fac alb pentru ca trebuie sa aiba si box

text = TextDrawCreate(493.000000, 156.000000, "hud:radardisc");//color
TextDrawBackgroundColor(text, 0xFFFFFFC8);
TextDrawFont(text, 4);
TextDrawLetterSize(text, 0.500000, 1.000000);
TextDrawColor(text, 0xFFFFFF00);
TextDrawSetOutline(text, 0);
TextDrawSetProportional(text, 1);
TextDrawSetShadow(text, 0);
TextDrawUseBox(text, 1);
TextDrawBoxColor(text, 1);
TextDrawTextSize(text, 27.000000, 33.000000);
TextDrawSetSelectable(text, 0);

este pe wiki http://wiki.sa-mp.com/wiki/TextDrawBoxColor

 

dar nu inteleg daca pun culoarea 0x000000FF o sa se faca " cutia" culoarea textului adica cea cu rosu de sus?

Edited by Selby
Link to comment
Share on other sites

  • 0

Incearca asa:

text = TextDrawCreate(493.000000, 156.000000, "hud:radardisc");//color
TextDrawBackgroundColor(text, 0xFFFFFFC8);
TextDrawFont(text, 4);
TextDrawLetterSize(text, 0.500000, 1.000000);
TextDrawColor(text, 0xFFFFFFAA);
TextDrawSetOutline(text, 0);
TextDrawSetProportional(text, 1);
TextDrawSetShadow(text, 0);
TextDrawUseBox(text, 1);
TextDrawBoxColor(text, 1);
TextDrawTextSize(text, 27.000000, 33.000000);
TextDrawSetSelectable(text, 0);
Edited by Adrian_Petre

 

 

Link to comment
Share on other sites

  • 0

 

 text = TextDrawCreate(493.000000, 156.000000, "hud:radardisc");//color
  TextDrawBackgroundColor(text, 0xFFFFFFFF);
  TextDrawFont(text, 4);
  TextDrawLetterSize(text, 0.500000, 1.000000);
  TextDrawColor(text, 0xFFFFFFFF);
  TextDrawSetOutline(text, 0);
  TextDrawSetProportional(text, 1);
  TextDrawSetShadow(text, 0);
  TextDrawUseBox(text, 1);
  TextDrawBoxColor(text, 0xFFFFFFFF);
  TextDrawTextSize(text, 27.000000, 33.000000);
  TextDrawSetSelectable(text, 0);

  text2 = TextDrawCreate(493.000000, 423.000000, "hud:radardisc");//color
  TextDrawBackgroundColor(text2, 0xFFFFFFFF);
  TextDrawFont(text2, 4);
  TextDrawLetterSize(text2, 0.500000, 1.000000);
  TextDrawColor(text2, 0xFFFFFFFF);
  TextDrawSetOutline(text2, 0);
  TextDrawSetProportional(text2, 1);
  TextDrawSetShadow(text2, 0);
  TextDrawUseBox(text2, 1);
  TextDrawBoxColor(text2, 0xFFFFFFFF);
  TextDrawTextSize(text2, 27.000000, -33.000000);
  TextDrawSetSelectable(text2, 0);
Edited by andy47
Link to comment
Share on other sites

  • 0

Ce mare agitatie pentru un TextDraw, uite aici:

text = TextDrawCreate(493.000000, 156.000000, "hud:radardisc");//color
  TextDrawBackgroundColor(text, 0xFFFFFFAA);
  TextDrawFont(text, 4);
  TextDrawLetterSize(text, 0.500000, 1.000000);
  TextDrawColor(text, 0xFFFFFFAA;
  TextDrawSetOutline(text, 0);
  TextDrawSetProportional(text, 1);
  TextDrawSetShadow(text, 0);
  TextDrawUseBox(text, 0xFFFFFFAA);
  TextDrawBoxColor(text, 0xFFFFFFAA);
  TextDrawTextSize(text, 27.000000, 33.000000);
  TextDrawSetSelectable(text, 0);

  text2 = TextDrawCreate(493.000000, 423.000000, "hud:radardisc");//color
  TextDrawBackgroundColor(text2, 0xFFFFFFAA);
  TextDrawFont(text2, 4);
  TextDrawLetterSize(text2, 0.500000, 1.000000);
  TextDrawColor(text2, 0xFFFFFFAA);
  TextDrawSetOutline(text2, 0);
  TextDrawSetProportional(text2, 1);
  TextDrawSetShadow(text2, 0);
  TextDrawUseBox(text2, 0xFFFFFFAA);
  TextDrawBoxColor(text2, 0xFFFFFFAA);
  TextDrawTextSize(text2, 27.000000, -33.000000);
  TextDrawSetSelectable(text2, 0);

242086.png

Link to comment
Share on other sites

  • 0

 

Ce mare agitatie pentru un TextDraw, uite aici:

text = TextDrawCreate(493.000000, 156.000000, "hud:radardisc");//color
  TextDrawBackgroundColor(text, 0xFFFFFFAA);
  TextDrawFont(text, 4);
  TextDrawLetterSize(text, 0.500000, 1.000000);
  TextDrawColor(text, 0xFFFFFFAA;
  TextDrawSetOutline(text, 0);
  TextDrawSetProportional(text, 1);
  TextDrawSetShadow(text, 0);
  TextDrawUseBox(text, 0xFFFFFFAA);
  TextDrawBoxColor(text, 0xFFFFFFAA);
  TextDrawTextSize(text, 27.000000, 33.000000);
  TextDrawSetSelectable(text, 0);

  text2 = TextDrawCreate(493.000000, 423.000000, "hud:radardisc");//color
  TextDrawBackgroundColor(text2, 0xFFFFFFAA);
  TextDrawFont(text2, 4);
  TextDrawLetterSize(text2, 0.500000, 1.000000);
  TextDrawColor(text2, 0xFFFFFFAA);
  TextDrawSetOutline(text2, 0);
  TextDrawSetProportional(text2, 1);
  TextDrawSetShadow(text2, 0);
  TextDrawUseBox(text2, 0xFFFFFFAA);
  TextDrawBoxColor(text2, 0xFFFFFFAA);
  TextDrawTextSize(text2, 27.000000, -33.000000);
  TextDrawSetSelectable(text2, 0);

Acum se vede asa: primul textdraw arata text la propriu "Hud;radardisc"  iar al doilea este negru

 

http://i.imgur.com/ed8Lfsj.png

 

 

eu vreau sa arata asa

 

http://i.imgur.com/aTpSvwX.png

Edited by Selby
Link to comment
Share on other sites

  • 0

pai uite cum este daca pun culoarea  0xFFFFFFFF

 

 

text2 = TextDrawCreate(493.000000, 423.000000, "hud:radardisc");//color
      TextDrawBackgroundColor(text2, 0xFFFFFFFF);
      TextDrawFont(text2, 4);
      TextDrawLetterSize(text2, 0.500000, 1.000000);
      TextDrawColor(text2, 0xFFFFFFFF);
      TextDrawSetOutline(text2, 0);
      TextDrawSetProportional(text2, 1);
      TextDrawSetShadow(text2, 0);
      TextDrawUseBox(text2, 1);
     TextDrawBoxColor(text2, 0xFFFFFFFF);
      TextDrawTextSize(text2, 27.000000, -33.000000);
      TextDrawSetSelectable(text2, 0);

 

 

http://i.imgur.com/RqXgXEh.png

Edited by Selby
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.