mIRC Home    About    Download    Register    News    Help

Print Thread
#2539 19/12/02 06:28 AM
Joined: Dec 2002
Posts: 13
L
Lackey Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Dec 2002
Posts: 13
Was wondering if anyone hear has heard of it. Very good script that a bunch of us use. But it's not 6.03 compliant because of the use of $isid inside of $iif statements ie.
Code:
var %retval = $iif($prop == static || !$isid, $ep.array.store($1), $1)  


Has anyone heard of this and/or know how to fix the problem? I would appreciate it soooo much!

#2540 19/12/02 11:33 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
%isid = $isid
var %retval = $iif($prop == static || !%isid, $ep.array.store($1), $1)


Code:
//if ( khaled isgod ) echo yes | else echo no
#2541 19/12/02 04:54 PM
Joined: Dec 2002
Posts: 13
L
Lackey Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Dec 2002
Posts: 13
I tried replacing all of the $isid with %isid. It opens, but one error message just keeps going and going and going. Something like
/happ unsufficient paramters

Anyone else know how to fix it?

#2542 20/12/02 12:40 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Quote:
var %retval = $iif($prop == static || !$isid, $ep.array.store($1), $1)


Try troubleshooting to find out exactly which part of that $iif() is causing the problem. It's not $isid itself.
Code:

  var %retval
  if ($prop == static) {
    echo 4 -esti2 * Static property used
    %retval = $ep.array.store($1)
  elseif ($isid) {
    echo 4 -esti2 * Called as an $identifier
    %retval = $ep.array.store($1)
  else {
    echo 4 -esti2 * not ().static and not $identifier; using $1
    %retval = $1
  }

This will at least tell you exactly what it's doing. Without decoding the entire script (which I am not willing to do), it's either a debugging approach like this or contacting the author for an updated version of the script.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#2543 21/12/02 01:59 PM
Joined: Dec 2002
Posts: 2
S
Bowl of petunias
Offline
Bowl of petunias
S
Joined: Dec 2002
Posts: 2
The problem is this, prior to 6.03 that line of code would properly recognize if it was called like /this or like $this
In 6.03, $isid always returns true now, presumably because it's getting called inside $iif
Like theRat suggested, you'll have to find every instance of $isid inside $iif, and put var %isid = $isid before it, and change $isid to %isid

Being the maker of edgepro :tongue: if anyone would wonder why the "scripter has been too lazy", I run a gaming network and an mIRC script isn't exactly priority :tongue:
My opinion is, unless you're a scripter, 6.03 doesn't offer all that much more from 6.02.

#2544 21/12/02 02:03 PM
Joined: Dec 2002
Posts: 2
S
Bowl of petunias
Offline
Bowl of petunias
S
Joined: Dec 2002
Posts: 2
Ok,
Aliases - functions.epa
Line 1288
Line 1304
Line 1317

They might not take you to the exact line, I may have added/removed things from mine over the past year, but they'll take you to the area where there's an $iif with $isid
I guess I'll put this info on the site, as for a new version, maybe next year or something.



Link Copied to Clipboard