mIRC Home    About    Download    Register    News    Help

Print Thread
#97547 13/09/04 06:29 PM
Joined: Mar 2004
Posts: 20
E
eger Offline OP
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Mar 2004
Posts: 20
i have script that outputs some text and some variables
msg #chan text %var1 %var2 %var etc
all varables changes for almost every line of output so it all looks kinda crappy and i would like to set it so i would have defind numbers of spaces before next variable
%var1 should have 7 chars
%var2 should have 10 chars
%var3 should have 5
so i would get on chan like this

text lala1__la2______lalala3
text la1___lalalal2___lala3
text lalal1_lalala2____la3

etc i replaced space with _ here

tnx smile

Joined: Sep 2004
Posts: 8
R
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
R
Joined: Sep 2004
Posts: 8
Are you using $chr(32) or $chr(160) as you space definition? I never get 32 to work. 160 seems to work. My script does basically the same thing. I just created a sub process that evaluates the length of the variable and if its supposed to be lets say 10 characters and its only 7, I use if statements to append $+ $chr(160) to make up the difference until my variable is Length 10.


Albert Ramnath
WinChat IIRC
http://routing.winchat.net

Link Copied to Clipboard