Skip to content
MSN

variable problem and gettok

A TG007 community discussion started by DreaM.

Discussion 9 posts
Page 1 of 1
Open
Topic #646 · 9 published posts · 851 views

hi all, I have this:

 

     raw kick %chan %nick %kickmsg

 

where kick message is: please do not come here again

 

but what I see when the bot kicks is: please

 

I used $gettok(%kickmsg,1-,46) but no way yet so any help please? uhm.gif

Edited Jun 15, 2004 3:34 PM by DreaM

Um, I'm not completely understanding what you want here. Put it clearer.

i guess its $gettok(%kickmsg,1-,32)

 

mellow.gif

on me:*:join:#:hop #

if your doing this from remotes use the following code.

 

/kick $chan %nick %kickmsg

 

if your doing this from typing or from a dialog, use the following code.

 

/kick $active %nick %kickmsg

 

thank you all but gatekeepr if you looked at the raw it was %chan so no problem about using $active plus it already kicks as I said but the problem is: it shows first word only.

 

%kickmsg please do not come here again

 

it is the value of %kickmsg but the bot kicks and says the msg of kick: please

 

I used $gettok(%kickmsg,1-,46) but did not work and system ty but what is the difference between $gettok(%kickmsg,1-,46) and $gettok(%kickmsg,1-,32) ??

i don't know if this will help anything but try

 

raw kick %chan %nick : $+ %kickmsg

bfush.PNG

yeah i think you will need to add : $+ if you've used a sockwrite. If you've used a sockwrite and theres spaces after kick message eg: Kick Me then it will only say Kick it looks like what you've done here.

"Be more concerned with your character than your reputation

because your character is who you really are while your reputation is merely what others think of you."

 

DesolateMx 8.0

dream, $gettok(%kickmsg,1-,46) and $gettok(%kickmsg,1-,32) differ in tokenz number

 

and by the way u didnt say if u trid $gettok(%kickmsg,1-,32) or not, and wut happened ph34r.gif

on me:*:join:#:hop #

thank you x-system and others, I tried it yes but $gettok was not the problem. the problem was as absorbx and vaxation said (I had to use : $+) and that is it biggrin.gif

 

thank you absorbx, x-system, vaxation and gate keeper for reply fixed.gif