SA-MP Forums Archive
i needs help with irc stuff - 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)
+--- Thread: i needs help with irc stuff (/showthread.php?tid=605533)



i needs help with irc stuff - sam1929 - 20.04.2016

guys im trying to add both a irc admin channel and a vip irc channel, i got them working but, the irc bots tho there all going in to all 3 irc channels, i want one bot in one irc channel one in irc admin channel and one in vip irc channel, i dont want all 3 dam irc bots to be going in to the same irc channels, i want them to be separated, here is my code so far http://pastebin.com/BnHZZ3ij if any one can help me i would really appreciate it thanks guys


Re: i needs help with irc stuff - xTURBOx - 21.04.2016

erm try this
PHP код:
public IRC_OnConnect(botidip[], port)
{
    if(
botid == gIRCBots[0])//bot 1
    
{
        
IRC_JoinChannel(botidIRC_CHANNEL);
           
IRC_AddToGroup(gIRCGroups[0], botid);
    }
    else if(
botid == gIRCBots[1])//admin bot
    
{
        
IRC_JoinChannel(botidIRC_ADMIN_CHANNEL);
        
IRC_AddToGroup(gIRCGroups[1], botid);
    }
    else if(
botid == gIRCBots[2])//vip bot
    
{
        
IRC_JoinChannel(botidIRC_VIP_CHANNEL);
        
IRC_AddToGroup(gIRCGroups[2], botid);
    }




Re: i needs help with irc stuff - sam1929 - 21.04.2016

Quote:
Originally Posted by xTURBOx
Посмотреть сообщение
erm try this
PHP код:
public IRC_OnConnect(botidip[], port)
{
    if(
botid == gIRCBots[0])//bot 1
    
{
        
IRC_JoinChannel(botidIRC_CHANNEL);
           
IRC_AddToGroup(gIRCGroups[0], botid);
    }
    else if(
botid == gIRCBots[1])//admin bot
    
{
        
IRC_JoinChannel(botidIRC_ADMIN_CHANNEL);
        
IRC_AddToGroup(gIRCGroups[1], botid);
    }
    else if(
botid == gIRCBots[2])//vip bot
    
{
        
IRC_JoinChannel(botidIRC_VIP_CHANNEL);
        
IRC_AddToGroup(gIRCGroups[2], botid);
    }

xTURBOx i loves you bro no homo ty sooooooooo much +Rep for the help thank you sooooooo much for the help bro from Tom_Fox.