PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: Jaakko on 20 May, 2005, 10:32:13

Title: Problem with rightclick
Post by: Jaakko on 20 May, 2005, 10:32:13
I'm trying to do a rightclick commands for my hub and everything works fine except this...
curUser:SendData("$UserCommand 1 3 Hub commands\\Kick/Ban\\Nickban $<%mynick> !nickban %[line: Nick]|")
I seem to be blind to my errors  :(
Title:
Post by: Corayzon on 20 May, 2005, 10:37:01
Whats wrong with the user command exactly?
Title:
Post by: Jaakko on 20 May, 2005, 10:43:11
My hub disconnects me when I try to use it.
Title:
Post by: jiten on 20 May, 2005, 10:55:39
QuoteOriginally posted by Jaakko
I'm trying to do a rightclick commands for my hub and everything works fine except this...
curUser:SendData("$UserCommand 1 3 Hub commands\\Kick/Ban\\Nickban $<%mynick> !nickban %[line: Nick]|")
I seem to be blind to my errors  :(
Try this:
curUser:SendData("$UserCommand 1 3 Hub commands\\Kick/Ban\\Nickban $<%[mynick]> !nickban %[line:Nick]||")Best regards,

jiten
Title:
Post by: Corayzon on 20 May, 2005, 10:55:55
u missed some chars dude,

u have:

curUser:SendData("$UserCommand 1 3 Hub commands\\Kick/Ban\\Nickban $<%mynick> !nickban %[line: Nick]|")

when it should be

curUser:SendData("$UserCommand 1 3 Hub commands\\Kick/Ban\\Nickban $<%[mynick]> !nickban %[line:Nick To Ban]|")

Difference:

<%mynick> = <%[mynick]>
%[line: Nine] = %[line:Nick To Ban]

=]
Title:
Post by: Jaakko on 20 May, 2005, 10:59:41
And it works  :D
Thank you.
Title:
Post by: jiten on 20 May, 2005, 19:34:57
Nice to know that it's working ;)

Cheers