hi i'm just new here because all the other sites for mirc scripting being syn-flood

uh well i'll start right away with my question because it ain't a nice problem

first my code:
alias lalign {
var %a = 1,%b = $calc($window($active).dw - 10),%c = $1,%d = $2-
while (%a = $wrap(%d,fixedsys,9,%b,0)) {
echo %c $wrap(%d,fixedsys,9,%b,%a)
inc %a
}
}
and now i use this code by using something like this:
on ^*:text:*:#:{
echo $chan $timestamp $nick $lalign($chan,$1-)
haltdef
}
I'm using this script for a theme i'm making that is using aligned things .. like
this so i also want to align my lines

but the problem is:
if i type a long line its not showing....
its only showing the $timestamp and the $nick ... and thats it
if i type a small line it goes like
TIME NICK: <$null>
TIME NICK: the line i typed here..
so its first showing an emtpy line

so as you can see its quite a nasty problem, so please help me out with this one

thanks..