can you look at my pm cmd for irc
#2

These will not work cos you create variable but you dont put anything in it....

Try these with sscanf
pawn Код:
IRCCMD:pm(botid, channel[], user[], host[], params[])
{
    if(IRC_IsVoice(botid, channel, user))
    {
        new ID;
        new pname[24];
        new message;
        new string[200];

        if(sscanf(params,"us",ID,message)) return IRC_GroupSay(gGroupID, IRC_CHANNEL, "Usage: !pm <ID> <message>");

        GetPlayerName(ID, pname, 24);

        if(!IsPlayerConnected(ID))
        {
            IRC_GroupSay(gGroupID, IRC_CHANNEL, "Invalid Player ID.");
            return 1;
        }
        format(string, sizeof(string), "%s, IRCPM sent.", user);
        IRC_GroupSay(gGroupID, IRC_CHANNEL,string);
        format(string, sizeof(string), "[IRCPM] From User %s: %s", user, message);
        SendClientMessage(ID, COLOR_BLUE, string);
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
can you look at my pm cmd for irc - by diehard5225 - 09.08.2011, 01:11
Re: can you look at my pm cmd for irc - by DRIFT_HUNTER - 09.08.2011, 01:24
Re: can you look at my pm cmd for irc - by diehard5225 - 09.08.2011, 01:40
Re: can you look at my pm cmd for irc - by PrawkC - 09.08.2011, 02:26
Re: can you look at my pm cmd for irc[closed] - by diehard5225 - 09.08.2011, 02:45

Forum Jump:


Users browsing this thread: 1 Guest(s)