29.09.2010, 00:03
You had message, which should've been a string, as an interger. You also needn't use sscanf for a single parameter.
pawn Код:
#define isnull(%1) (!%1[0] || (%1[0] == '\1' && !%1[1]))
command(say, playerid, params[])
{
new
string[128];
if(PlayerStatistics[playerid][pAdminLevel] < 3) return 1;
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /say [message]");
if(!IsPlayerConnectedEx(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You are not logged in!");
format(string, sizeof(string), "* Admin: %s", message);
SendClientMessageToAll(0x2587CEFF, string);
return 1;
}