mIRC Home    About    Download    Register    News    Help

Print Thread
#30711 18/06/03 11:04 PM
Joined: Jun 2003
Posts: 67
D
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
ok here goes im making a script for mIRC which will automatically create a cfg file that has alias/binds for HL to create demos well since im including the IP in the filename HL drops the .dem extension which i need to be added later in some way since variable have to have a space on both sides of them i cant just do %variable.dem


while (demi == nub) {
inc %skill
}
#30712 19/06/03 03:38 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
was that your question? That looked like you listing information, not a question..


-KingTomato
#30713 19/06/03 04:08 AM
Joined: Jun 2003
Posts: 67
D
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
well turns out i figured out a kinda shitty way to do it
Code:
alias demo {
  %demostring = $replace(%servername %serverip %map %comment,$chr(32),_) .dem
  %demostring = $remove(%demostring,$chr(32))
  /write -l1 f:\sierra\half-life\cstrike\demo.cfg alias demo record %demostring
}
 


while (demi == nub) {
inc %skill
}
#30714 19/06/03 02:29 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
/help $+


Code:
//if ( khaled isgod ) echo yes | else echo no
#30715 19/06/03 02:32 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
look at /help $+
because for example
var %i = 1
var %g = 2
//echo -a %i $+ %g echos 12


new username: tidy_trax
#30716 19/06/03 06:57 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
actually his way might be better, becasue any spaces the variables themselves have are also replaced. >:D


-KingTomato

Link Copied to Clipboard