IRC Echobot Query command - 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 Echobot Query command (
/showthread.php?tid=141078)
IRC Echobot Query command -
Jokerstyle - 11.04.2010
Well, it's hard to describe the whole question in a few words (that's why the heading sux)
Ok, is it possible to create a command which let the echobot query a user on IRC?
Example:
"<~Razor[MM]> !talkto XYZ i love cookies!"
Then the bot shall query the user XYZ and send him the message "i love cookies"!
I already tried it like that:
Код:
IRCCMD:talkto(botid, channel[], user[], host[], params[])
{
IRC_Say(botid, "/msg %s %s",params[1], params[2]);
return true;
}
But it fails.
Is there any way to get it working?
Re: IRC Echobot Query command -
lolumadd - 11.04.2010
Im not familiar with your command system your using so I cant correct you on that, but i find this interesting:
Код:
IRC_Say(botid, "/msg %s %s",params[1], params[2]);
Try:
Код:
new string[128];
format(string, sizeof(string), "/msg %s %s", params[1], parans[2]);
IRC)_Say(botid, string);
Re: IRC Echobot Query command -
Jokerstyle - 11.04.2010
Doesn't work :/
Re: IRC Echobot Query command -
lolumadd - 11.04.2010
Check for a IRC command named: SendCommand
and you cant use your param[1], [2], etc, system, that only works for decimals, you would have to use the split function or sscanf