SA-MP Forums Archive
IRC pm system need some help server sided - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: IRC pm system need some help server sided (/showthread.php?tid=211852)



IRC pm system need some help server sided - kin - 16.01.2011

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.


Re: IRC pm system need some help server sided - kin - 22.01.2011

bumps?


Re: IRC pm system need some help server sided - Whitetiger - 22.01.2011

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

too

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