Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

PM command

$
0
0
Can someone tell me why this command doesnt work:

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]
even if i type all params correctly.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>