mIRC Homepage
Posted By: LittleJohn $encode - $decode - 30/11/07 03:37 AM
Not sure why this is not working. It encodes ok I can see %word echoed encoded but not decoded when I use /dword hope Im explaining ok its Late.

mIRC: v6.31
OS: XP Home

/word {
set %word $1
//echo -a $encode(%word)
}

dword {
//echo -a %password
set %decode $decode(%word)
echo -a %decode
}
Posted By: Bekar Re: $encode - $decode - 30/11/07 04:08 AM
Have you unlocked the $decode() in Options/Other/Lock ?
Posted By: LittleJohn Re: $encode - $decode - 30/11/07 11:54 AM
Yes its Unlocked.
Posted By: Collective Re: $encode - $decode - 30/11/07 11:59 AM
You're setting %word to the (presumably) unencoded contents of $1, then trying to decode it.

Code:
word {
  set %word $encode($1)
  echo -a %word
}

dword {
  echo -a %password
  set %decode $decode(%word)
  echo -a %decode
}
© mIRC Discussion Forums