mIRC Homepage
Posted By: nexux Get a word with gettok - 19/05/17 03:34 PM
Get a word and send to notice or write in the room or modify it later

Code:
on 1:text:*:#channel: {
if ( solicitado iswm $strip($1-) ) { /notice $gettok($1-,3,32)
}


But this code I've put is just an example of what I want to do, but it does not work for me

But I want to get any phrase that is written and then I can do whatever I want with that sentence, either send me a notice to me, or be able to change and send it to the room.
Posted By: nexux Re: Get a word with gettok - 19/05/17 04:46 PM
I'm trying this way, but


Code:
on *:text:!petition *:#:{
  ;save word
  set %word. $+ $nick $2
  notice $me $nick $qt($2) was saved!
}


But, my code is work!

But he does not do what he should. I explain..

Quote:
(New Petition) nick has requested: will smith miami


And what I need is:

Code:
/notice $me $nick

© mIRC Discussion Forums