Quote:
Originally Posted by Jefff
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
Jesus christ, could you complicate it any more..?
|
I'm sure I probably could.
Quote:
Originally Posted by Kar
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.