IRC pm system need some help server sided
#1

pawn Код:
new cmd[128],tmp[128],tmp2[128],idx;
    cmd = strtok(cmdtext,idx);
    if(strcmp(cmdtext,"/ircpm")==0)
    {
        tmp = strtok(cmdtext,idx);
        tmp2 = strtok(cmdtext,idx);
        if(!strlen(tmp))return SendClientMessage(playerid,denim,"USAGE: /ircpm <EXACT IRC NAME> <MSG>");
        {
            if(IRC_IsUserOnChannel(gBotID[0],IRC_CHANNEL,tmp))
            {
                IRC_Say(gBotID[0],tmp,tmp2);
            }
        }
        return 1;
    }

My goal is to create a pm system ingame and in the irc, i have irc to server working, how can i go about doing this, i thought my approach would have worked but it hasnt.
Reply


Messages In This Thread
IRC pm system need some help server sided - by kin - 16.01.2011, 04:03
Re: IRC pm system need some help server sided - by kin - 22.01.2011, 04:12
Re: IRC pm system need some help server sided - by Whitetiger - 22.01.2011, 05:28

Forum Jump:


Users browsing this thread: 2 Guest(s)