23.10.2011, 16:55
I don't really understand why you need to use sscanf in this code, there is no need to use sscanf here. It is for unformatting code, not checking if a string is not empty. Here is a fixed example of this code:
pawn Код:
COMMAND:do(playerid, params[])
{
if(!strlen(params)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "[SYNTAX]: /do [Environment]");
new string[128];
format(string, sizeof(string), "** %s (( %s ))", Character[playerid][cName], params);
PlayerLocalMessage(15.0, playerid, string, COLOR_MEDIUMPURPLE,COLOR_MEDIUMPURPLE,COLOR_MEDIUMPURPLE,COLOR_MEDIUMPURPLE,COLOR_MEDIUMPURPLE);
return 1;
}