09.05.2010, 15:30
This command should look like this:
Don't use sscanf where you have only one parameter.
pawn Код:
command(ooc, playerid, params[])
{
if(isnull(params)) SendClientMessage(playerid, GREY, "USAGE: /Ooc [Text]");
else
{
GetPlayerName(playerid, Name, sizeof(Name)); new string[128];
format(string, sizeof(string), "((OOC Chat: %s: %s ))" , Name, params);
SendClientMessageToAll(WHITE, string);
}
return 1;
}