mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

It would be a nice and useful tool especially for starters to add an position in $error.

Example:

Code:
alias test {
  var %test 1
  if (%test) { echo -a $gettok(%a,1,32) - $gettok(%b,2) - $gettok(%c,3,32) }
}


This code has an scripting error into the second $gettok so when the $error trigger the error message will be like this:

* Too few parameters: $gettok (line 3:43, test.mrc)

And after this error that will trigger with error position the scripter will more easy open the script editor and directly go into the specific line-position that the error occurred.

- Thanks!

Last edited by westor; 15/06/15 12:31 PM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: May 2015
Posts: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
+1
For noobs, who write tons of code without step-by-step checking it would be useful too. No, its not about me..


Dont give a fish - teach to fish!
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
not just for starters (noobs)


I refuse to engage in a battle of wits with an unarmed person. wink

Link Copied to Clipboard