0xFFFFFF is white?
#1

Hello guys!

On http://www.nthelp.com/colorcodes.htm it says that 0xFFFFFF is white, but when I added it onto my script (i'm newbie scripter) it was light blue?

Is the website wrong, or the script? If it is the website, what's the white color code then?

My command code:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/information", cmdtext, true, 5) == 0)
    {
SendClientMessage(playerid,0xFFFFFF,"Server information");
}
    return 0;
}
Reply
#2

0xFFFFFFC8
That one is white, you can use some color picker programs.
Reply
#3

Add alpha channel: 0xFFFFFFFF. Samp uses RGBA in most of places. Also ****** "indentation"
Reply
#4

You need to add an extra FF to the end so it's 0xFFFFFFFF (. I would like to know the reason for this myself. But adding the extra 2 Fs has always done the trick for me.
Reply
#5

You can use -1 instead of hex, that's white color in client messages

you can just look at this and you will understand it

0xRRGGBBAA

Where:
0x stands for Hex
RR - ammount of RED (( from 00 to FF - hexadecimal ))
GG - -||- Green
BB - -||- Blue
AA - Transparency (00 to FF, too)
Reply
#6

Oh, thank you guys
Reply
#7

http://www.colorpicker.com/ All you gotta do is add 0x and FF to the given value.

Example: You clicked white and it gave you FFFFFF.. you add 0x and FF.
Result: 0x FFFFFF FF --> 0xFFFFFFFF
Reply
#8

Quote:
Originally Posted by Alternative112
Посмотреть сообщение
You need to add an extra FF to the end so it's 0xFFFFFFFF (. I would like to know the reason for this myself. But adding the extra 2 Fs has always done the trick for me.
Colours are represented by numbers. If you look at FFFFFF and FFFFFFFF in decimal, they are VERY different: 16777215 and 4294967295
Reply
#9

you can use and hex,
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/information", cmdtext, true, 5) == 0)
    {
SendClientMessage(playerid,-1,"Server information");//-1 is white
return 1;
}
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)