mIRC Home    About    Download    Register    News    Help

Print Thread
$istok() issues #205465 23/10/08 09:03 PM
Joined: Sep 2007
Posts: 28
M
Miyako Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2007
Posts: 28
I noticed what happened, $istok(string,token,N,C) is replaced by $istok(string,token,C).
I also get why it is (N wasn't necessary), so this thread could be closed smile
Could anyone only maybe tell me in what version it changed? (So I could make my script work on older versions, thx in common ^^).


_____________________________________________

Hi,

In early versions (mIRC 6.3) I could use this command:

Code:
$istok($null,a,1,32)


What would result: "$false", in the latest version: mIRC 6.35 (and earlier maybe, didn't test it on other versions yet), this is impossible and the result is:
Code:
* Invalid parameters: $istok


Still... when I do:
Code:
$gettok($null,1,32)

It gives me nothing, no error, but $null.

Why is this happening with $istok, will this stay like it is now, or is it a bug?

Greets,
Miyako

Last edited by Miyako; 23/10/08 09:13 PM.
Re: $istok() issues [Re: Miyako] #205466 23/10/08 09:19 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
The $istok format has always been $istok(string,token,C), all that's changed is that it now throws an error when used incorrectly. This was done in 6.33.

Re: $istok() issues [Re: Collective] #205468 23/10/08 09:29 PM
Joined: Jul 2006
Posts: 3,621
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,621
You might want to check this thread :

http://forums.mirc.com/ubbthreads.php?ubb=showflat&Board=8&Number=199822&Searchpage=1&Main=35376&Words=%24istock+behavior&topic=0&Search=true#Post199822


* to the OP, not you Collective

Last edited by Wims; 23/10/08 09:30 PM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: $istok() issues [Re: Wims] #205490 24/10/08 08:17 AM
Joined: Sep 2007
Posts: 28
M
Miyako Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2007
Posts: 28
Originally Posted By: Wims
You might want to check this thread :

http://forums.mirc.com/ubbthreads.php?ubb=showflat&Board=8&Number=199822&Searchpage=1&Main=35376&Words=%24istock+behavior&topic=0&Search=true#Post199822


* to the OP, not you Collective


Thanks a lot, now it's clear to me:D