Can someone tell me why this command doesnt work:
I always get
even if i type all params correctly.
Code:
new string[200], iUser[80], iMsg[200];
if(sscanf(params, "s[80]s[200]", iUser, iMsg)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /ircpm [user] [message]");
if(!IRC_IsUserOnChannel(groupID, IRC_CHANNEL, iUser))
{
format(string, sizeof(string), "* The name '%s' is not currently connected to the IRC channel.", iUser);
SendClientMessage(playerid, COLOR_RED, string);
}
else
{
format(string, sizeof(string), "* Your message has been sent to %s", iUser);
SendClientMessage(playerid, COLOR_RED, string);
format(string, sizeof(string), "* PM from %s [%d]: %s", ReturnPlayerName(playerid), playerid, iMsg);
IRC_Notice(groupID, iUser, string);
}
I always get
Quote:
USAGE: /ircpm [user] [message] |