SA-MP Forums Archive
I am stupid or.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I am stupid or.. (/showthread.php?tid=194078)



I am stupid or.. - The_Moddler - 28.11.2010

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?


Respuesta: I am stupid or.. - [J]ulian - 28.11.2010

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


Re: I am stupid or.. - The_Moddler - 28.11.2010

Nope.. still the same..


Re: I am stupid or.. - DVDK - 28.11.2010

Try to use ( ) instead of { }.


Respuesta: I am stupid or.. - [J]ulian - 28.11.2010

Be wrong color? green 88AA88


Re: I am stupid or.. - Bumbis - 28.11.2010

delete the 0x and alpha in the end.


Re: I am stupid or.. - 6d - 28.11.2010

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.


Re: I am stupid or.. - The_Moddler - 28.11.2010

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..


Re: I am stupid or.. - 6d - 28.11.2010

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


Re: I am stupid or.. - Zimon95 - 28.11.2010

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


Re: I am stupid or.. - The_Moddler - 28.11.2010

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


Re: I am stupid or.. - armyoftwo - 28.11.2010

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


Re: I am stupid or.. - [03]Garsino - 28.11.2010

Use hex colours instead, armyoftwo.


Re: I am stupid or.. - armyoftwo - 28.11.2010

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