20.01.2012, 15:09
It works with "" too.
pawn Код:
if (strcmp("/stats", cmdtext, true, 6) == 0) // It's 6, not 10.
{
// new string[ 128 ];
// Incase you don't have it!
format(string, sizeof(string), ""COL_GREEN"Kills: [%d]"COL_YELLOW" | "COL_RED"Deaths: [%d] "COL_YELLOW"| Ratio: [%0.2f] | "COL_GREEN"Money: [$ %d]"COL_YELLOW" | Adminlevel: [%d] | "COL_BLUE"VIP level: [%d]", pInfo[playerid][Kills], pInfo[playerid][Deaths], pInfo[playerid][Kills]/pInfo[playerid][Deaths],GetPlayerMoney(playerid), pInfo[playerid][Admin], pInfo[playerid][VIP]);
SendClientMessage(playerid, red, string);
return 1;
}