mIRC Home    About    Download    Register    News    Help

Print Thread
[SUGGESTION]: Add position info support in $error #253454 15/06/15 12:29 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
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.
Re: [SUGGESTION]: Add position info support in $error [Re: westor] #253455 15/06/15 12:42 PM
Joined: May 2015
Posts: 249
splinny Offline
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!
Re: [SUGGESTION]: Add position info support in $error [Re: westor] #253456 15/06/15 02:34 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
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