02.08.2011, 03:54
How about this:
No errors but I can see while chatting the message twice.
And I can see all the text blue.
pawn Код:
public OnPlayerText(playerid, text[])
{
new str[128], Name[24];
new Year, Month, Day;
getdate(Year, Month, Day);
GetPlayerName(playerid, Name, sizeof(Name));
format(str, sizeof(str), "[%d/%d/%d][ID: %d]%s: %s", Year, Month, Day, playerid, Name, text);
SendClientMessageToAll(GetPlayerColor(playerid), str);
And I can see all the text blue.