Color problem
#1

Hello I try to define the color of player like that
PHP код:
new Color[4];
stock PlayerColor(factionid)
{
    
format(Color[1],40,"0xFFFFFFC8");
    
format(Color[2],40,"0x0080C0C8");
    
format(Color[3],40,"0x0000A0C8");
    return 
1;

For see if color works I try to make this sendclientmessage, but , don't work is color black when he send me the message, whta is wrong?
PHP код:
format(string,123,"Color: %s ",PlayerColor(PlayerInfo[playerid][pMember]));
SendClientMessage(playerid,PlayerColor(PlayerInfo[playerid][pMember]),string); 
Reply
#2

Colors are numbers and they should be treated as such. Your function also does nothing but return 1 (0x00000001) a.k.a. black.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)