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
#2

bumps?
Reply
#3

pawn Код:
if(strcmp(cmdtext,"/ircpm")==0)

too

pawn Код:
if(strcmp(cmd,"/ircpm")==0)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)