11.04.2010, 14:47
Hi, I have setted a color for the whisper cmd, and if I set for example to red it sends me with the black colour, why?
Here's an example:
What's wrong?
Here's an example:
pawn Код:
if(strcmp(x_nr,"red",true) == 0)
{
format(string, sizeof(string), "0xD40000AA");
strmid(PlayerInfo[playerid][pWispCol], string, 0, strlen(string), 255);
PlayerInfo[playerid][pWispCols] = 1;
format(string,sizeof(string),"Your whisper color was setted to RED.");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
pawn Код:
format(string, sizeof(string), "%s(ID: %d) whispers: %s", sendername, playerid, (result));
SendClientMessage(giveplayerid, PlayerInfo[giveplayerid][pWispCol], string);
format(string, sizeof(string), "Whisper sent to %s(ID: %d): %s", giveplayer, giveplayerid, (result));
SendClientMessage(playerid, PlayerInfo[playerid][pWispCol], string);