I am stupid or..
#1

I have problems to get working the multiple colors on a same text..

I have this:

pawn Код:
SendClientMessage(playerid, COLOR_WHITE, "Motor (0x38FF06FF)apagado.");
And will show:

Код:
Motor (0x38FF06FF)apagado. (White color)
And if I do this:

pawn Код:
SendClientMessage(playerid, COLOR_WHITE, "Motor {0x38FF06FF}apagado.");
Will show this:

Код:
Motor apagado. (Black color)
0x38FF06FF = green, but it shows it as black.. so.. how to use hex colors?
Reply
#2

SendClientMessage(playerid, COLOR_WHITE, "Motor {38FF06}apagado.");
Reply
#3

Nope.. still the same..
Reply
#4

Try to use ( ) instead of { }.
Reply
#5

Be wrong color? green 88AA88
Reply
#6

delete the 0x and alpha in the end.
Reply
#7

Wait, Sir, I don't understand you want something like...

Motor Apagado?

Cause if i'm right that is impossible in the current sa-mp version.

SendClientMessage(playerid, color, message[])
that's the only place where u decide the color and it can't be multi-colored, only 1 color per line.
I heard the new version of sa-mp would have that.
Reply
#8

Quote:
Originally Posted by 6d
Посмотреть сообщение
Wait, Sir, I don't understand you want something like...

Motor Apagado?

Cause if i'm right that is impossible in the current sa-mp version.

SendClientMessage(playerid, color, message[])
that's the only place where u decide the color and it can't be multi-colored, only 1 color per line.
I heard the new version of sa-mp would have that.
LOL, you are at 0.3c RC scripting forum.. 0.3c supports mult color ina single line..
Reply
#9

Oh damn sorry, I saw the post on the New Posts thing.
Reply
#10

Try:
pawn Код:
SendClientMessage(playerid, COLOR_WHITE, "Motor {38FF06}apagado.");
That's the right syntax...
Reply
#11

Ah, nevermind, I used RGB colors, and now works.

Thanks guys.

EDIT:

Quote:
Originally Posted by Zimon95
Посмотреть сообщение
Try:
pawn Код:
SendClientMessage(playerid, COLOR_WHITE, "Motor {38FF06}apagado.");
That's the right syntax...
I just saw your post, yes, I used like that, thanks anyways
Reply
#12

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
Ah, nevermind, I used RGB colors, and now works.

Thanks guys.
Can you show me how you used it? i use RGB colors {255204201} doesn't work
Reply
#13

Use hex colours instead, armyoftwo.
Reply
#14

Oh, thanks.. i just need to use first 6 letters/numbers from the hex
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)