Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Cool on Jul 08, 2016, 05:39 AM

Title: Private Message
Post by: Cool on Jul 08, 2016, 05:39 AM
how to send private message in rulk irc three bots
http://forum.vc-mp.org/?topic=1695.msg12125#msg12125
Title: Re: Private Message
Post by: Xmair on Jul 08, 2016, 05:50 AM
Send "NOTICE " + USER + " " + TEXT + "\n" using the sockets.
Title: Re: Private Message
Post by: Thijn on Jul 08, 2016, 05:53 AM
Quote from: Xmair on Jul 08, 2016, 05:50 AMSend "NOTICE " + USER + " " + TEXT + "\n" using the sockets.
That's not a PM, that's a notice.

Just use PRIVMSG like you would for channels, but instead send it to a nickname.
Title: Re: Private Message
Post by: Xmair on Jul 08, 2016, 06:20 AM
Didn't properly read it, thought he was asking for notices.
Title: Re: Private Message
Post by: Cool on Jul 09, 2016, 07:17 AM
trying this function not working
function EchoNotice( USER, TEXT )
{
local
BotID = FindNexBotId();

// Send the data to IRC.
socket[ BotID ].Send("NOTICE " + USER + " " + TEXT + "\n");
}
Title: Re: Private Message
Post by: Cool on Jul 09, 2016, 02:08 PM
Help!!!!!!!!!!
Title: Re: Private Message
Post by: Xmair on Jul 09, 2016, 05:22 PM
What's the error?
Title: Re: Private Message
Post by: KAKAN on Jul 09, 2016, 05:23 PM
Quote from: Xmair on Jul 09, 2016, 05:22 PMWhat's the error?
Nothing, he wants to PM, personal chat using bot.
Title: Re: Private Message
Post by: Thijn on Jul 09, 2016, 07:12 PM
Quote from: KAKAN on Jul 09, 2016, 05:23 PM
Quote from: Xmair on Jul 09, 2016, 05:22 PMWhat's the error?
Nothing, he wants to PM, personal chat using bot.
So? That code should work fine. Hence the question, what's the error...
Title: Re: Private Message
Post by: KAKAN on Jul 10, 2016, 04:00 AM
Quote from: Thijn on Jul 09, 2016, 07:12 PM
Quote from: KAKAN on Jul 09, 2016, 05:23 PM
Quote from: Xmair on Jul 09, 2016, 05:22 PMWhat's the error?
Nothing, he wants to PM, personal chat using bot.
So? That code should work fine. Hence the question, what's the error...
maybe the syntax for that is: /MSG NICK TEXT ?
Title: Re: Private Message
Post by: Xmair on Jul 10, 2016, 05:28 AM
Quote from: KAKAN on Jul 10, 2016, 04:00 AM
Quote from: Thijn on Jul 09, 2016, 07:12 PM
Quote from: KAKAN on Jul 09, 2016, 05:23 PM
Quote from: Xmair on Jul 09, 2016, 05:22 PMWhat's the error?
Nothing, he wants to PM, personal chat using bot.
So? That code should work fine. Hence the question, what's the error...
maybe the syntax for that is: /MSG NICK TEXT ?
No. When ever you chat, your irc client sends a socket with 'PRIVMSG #CHANNEL TEXT'.
Title: Re: Private Message
Post by: Cool on Jul 12, 2016, 01:02 PM
Quote from: Xmair on Jul 09, 2016, 05:22 PMWhat's the error?
user does not exists
Title: Re: Private Message
Post by: Xmair on Jul 12, 2016, 01:42 PM
What do you think that means?
Title: Re: Private Message
Post by: Cool on Jul 13, 2016, 08:45 AM
Quote from: Xmair on Jul 12, 2016, 01:42 PMWhat do you think that means?
if i know whats its means so i will solve it my self but about think this type of errors cause due to if a function not defined or if player not available.
Title: Re: Private Message
Post by: KAKAN on Jul 13, 2016, 08:59 AM
Quote from: Hercules on Jul 13, 2016, 08:45 AM
Quote from: Xmair on Jul 12, 2016, 01:42 PMWhat do you think that means?
if i know whats its means so i will solve it my self but about think this type of errors cause due to if a function not defined or if player not available.
"USER DOES NOT EXIST" That means the user you're trying to contact to is dead.
For ex: My name was KAKAN, I change it to NAKAK. So, now, if you do: /MSG KAKAN HEY BICH it won't work.
Title: Re: Private Message
Post by: Omar on Jul 15, 2016, 09:43 PM
Quote from: KAKAN on Jul 13, 2016, 08:59 AM
Quote from: Hercules on Jul 13, 2016, 08:45 AM
Quote from: Xmair on Jul 12, 2016, 01:42 PMWhat do you think that means?
if i know whats its means so i will solve it my self but about think this type of errors cause due to if a function not defined or if player not available.
"USER DOES NOT EXIST" That means the user you're trying to contact to is dead.
For ex: My name was KAKAN, I change it to NAKAK. So, now, if you do: /MSG KAKAN HEY BICH it won't work.
NAKAK = "F**ked you" in Arabic.
Title: Re: Private Message
Post by: EK.IceFlake on Jul 16, 2016, 11:24 AM
Quote from: Omar on Jul 15, 2016, 09:43 PM
Quote from: KAKAN on Jul 13, 2016, 08:59 AM
Quote from: Hercules on Jul 13, 2016, 08:45 AM
Quote from: Xmair on Jul 12, 2016, 01:42 PMWhat do you think that means?
if i know whats its means so i will solve it my self but about think this type of errors cause due to if a function not defined or if player not available.
"USER DOES NOT EXIST" That means the user you're trying to contact to is dead.
For ex: My name was KAKAN, I change it to NAKAK. So, now, if you do: /MSG KAKAN HEY BICH it won't work.
NAKAK = "F**ked you" in Arabic.
ناكك