Ty, that solved the problem smile

a new problem tho crazy

Now my code looks like:
Code:
alias disks {
  var %id = 1
  var %dz = 99
  while (%dz <= 122) {
    if ($1 == %id) && ($disk($chr(%dz))) return Disk $upper($+(&,$chr(%dz))) Size $chr(149) $hd :/
    inc %id
    inc %dz
  }
}
alias hd {
  if ($disk($chr(%dz)).type == cdrom) { return CD-Rom }
  return $calc(%HDD_total + $bytes($disk($chr(%dz)).size,g))
}

But it return the same size for all the disks, and i can't get it to return if the disk/drive is a CD or a hard drive, someone that can point me in the right direction here?

Last edited by sparta; 06/09/07 10:50 AM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }