mIRC Homepage
Posted By: Miyako $istok() issues - 23/10/08 09:03 PM
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
Posted By: Collective Re: $istok() issues - 23/10/08 09:19 PM
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.
Posted By: Wims Re: $istok() issues - 23/10/08 09:29 PM
You might want to check this thread :

https://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
Posted By: Miyako Re: $istok() issues - 24/10/08 08:17 AM
Originally Posted By: Wims
You might want to check this thread :

https://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
© mIRC Discussion Forums