18.06.2013, 14:42
You don't need sscanf() for this params is already a string you only need to check if it's null. You should also work on your logic your using return; improperly it inflates your code uselessly.
pawn Код:
CMD:me(playerid, params[])
{
new string[128];
if(isnull(params)) SendClientMessage(playerid, -1, "USAGE: /me [action]");
else
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(string, sizeof(string), "* %s %s",pName, action);
SendClientMessage(playerid,COLOR_HERE,string); // <<----------
}
return 1;
}