mIRC Home    About    Download    Register    News    Help

Print Thread
#174695 11/04/07 10:50 AM
Joined: Apr 2007
Posts: 1
S
Mostly harmless
OP Offline
Mostly harmless
S
Joined: Apr 2007
Posts: 1
i think that this code must return
Code:
.. 3 1
.. 4

but it returns
Code:
.. 3 1
.. 


Code:
alias c3 {
  set %c $calc($len($1) - $pos($1,$chr(35)))
  echo .. $len($1) %c
  echo .. $rigth($1,%c)
  return $rigth($1,%c)
}

//c3 #4  0x [231M] [AnY]_Chevalier_-_17_[h264][1280x720][AAC_5.1][0FBEA828].mkv

Last edited by ShadowDancer; 11/04/07 10:53 AM.
Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
You're not spelling the identifiers properly.
Code:
alias c3 {
  set %c $calc($len($1) - $pos($1,$chr(35)))
  echo .. $len($1) %c
  echo .. $right($1,%c)
  return $right($1,%c)
}


Those who can, cannot. Those who cannot, can.

Link Copied to Clipboard