mIRC Home    About    Download    Register    News    Help

Print Thread
#246706 27/06/14 06:47 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

There is an problem with the /set -u when i try to set the 439 seconds.

@Debug:

<- :*.undernet.org 439 Giorgos Petros :Target change too fast. Please wait 45 seconds.

Code:
; $9 = seconds (45)
RAW 439:*: { 
  echo -s SECONDS: $9
  set -eu $+ $9 %test 1
}


OUTPUT:

SECONDS: 45
-
* /set: invalid parameters (line 76, remote.ini)
-

- Thanks!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
/set simply does not handle this, it fails when evaluating %test, which is meant to be plain text. You need $+ to fix that
Code:
set -eu $+ $9 % $+ test 1


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Thanks problem solved.

I did not think to make something like this!

- Thanks!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard