Colour embedding help
#5

Quote:
Originally Posted by Jefff
View Post
pawn Code:
public OnPlayerText(playerid, text[])
{
    new
        tStr [ 156 ],
        p_Name [ MAX_PLAYER_NAME ];

    GetPlayerName( playerid, p_Name, sizeof( p_Name ) );

    format( tStr, sizeof( tStr ), ""#IDCOLOUR"~%d~ {%06x}%s "#IDCOLOUR"-> "#WHITE"%s", playerid, (accInfo[playerid][Colour] >>> 8), p_Name, text );
    SendClientMessageToAll( -1, tStr );
    return false;
}
Uhhhhhhhhhh........

Quote:
Originally Posted by MP2
View Post
Jesus christ, could you complicate it any more..?
I'm sure I probably could.

Quote:
Originally Posted by Kar
View Post
LOLWHAT?

pawn Code:
public OnPlayerText(playerid, text[])
{
    new
        tStr [ 156 ],
        p_Name [ MAX_PLAYER_NAME ];
       
    GetPlayerName( playerid, p_Name, sizeof( p_Name ) );
       
    printf("%s", accInfo [ playerid ] [ Colour ] ); // 0xFFFFFFFF
    strdel( accInfo [ playerid ] [ Colour ], 0, 2 );
    strdel( accInfo [ playerid ] [ Colour ], 6, 8 );
    printf("%s", accInfo [ playerid ] [ Colour ] ); // FFFFFF ( proper format )
       
    format( tStr, sizeof( tStr ), ""#IDCOLOUR"~%d~ {%s}%s "#IDCOLOUR"-> "#WHITE"%s", playerid, accInfo[playerid][Colour], p_Name, text );
    SendClientMessageToAll( -1, tStr );
    return false;
}
Thank you.
Reply


Messages In This Thread
Colour embedding help - by 2KY - 29.04.2012, 23:28
Re: Colour embedding help - by Jefff - 30.04.2012, 00:16
Re: Colour embedding help - by MP2 - 30.04.2012, 00:18
Re: Colour embedding help - by Kar - 30.04.2012, 00:31
Re: Colour embedding help - by 2KY - 30.04.2012, 00:35
Re: Colour embedding help - by MP2 - 30.04.2012, 00:40
Re: Colour embedding help - by 2KY - 30.04.2012, 00:42

Forum Jump:


Users browsing this thread: 1 Guest(s)