Spacing - 26/06/03 08:33 AM
i know there's probably a post on here already to cover this but i didnt find it, or atleast i dont think i did.
I was working on a MOTD viewer and i am having a hard time keeping the spacing in the lines. I have tried almost everything. I've tried to replace spaces with another $chr(), then whenever i read it from the hashtable replace the $chr() with $chr(32) and and that didnt work, so i tried replacing it with $chr(160) also, and that still didnt work anyone got any ideas?
raw 372:*:{
inc %motdhash
hadd motd %motdhash $replace($replace($2-,$chr(32),$chr(200)),$chr(160),$chr(200))
halt
}
raw 376:*:{
while (%motdhash >= 1) {
did -a motd 2 $replace($hget(motd,%motdhash).data,$chr(200),$chr(32))
dec %motdhash
}
halt
}
I was working on a MOTD viewer and i am having a hard time keeping the spacing in the lines. I have tried almost everything. I've tried to replace spaces with another $chr(), then whenever i read it from the hashtable replace the $chr() with $chr(32) and and that didnt work, so i tried replacing it with $chr(160) also, and that still didnt work anyone got any ideas?
raw 372:*:{
inc %motdhash
hadd motd %motdhash $replace($replace($2-,$chr(32),$chr(200)),$chr(160),$chr(200))
halt
}
raw 376:*:{
while (%motdhash >= 1) {
did -a motd 2 $replace($hget(motd,%motdhash).data,$chr(200),$chr(32))
dec %motdhash
}
halt
}