mIRC Home    About    Download    Register    News    Help

Print Thread
/drawline doesn't report error on missing param #270118 03/04/22 08:31 PM
Joined: Jul 2006
Posts: 3,889
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,889
I missed the size parameter and /drawline did not report an error, it should, all the parameters are required.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Re: /drawline doesn't report error on missing param [Re: Wims] #270119 04/04/22 05:53 AM
Joined: Dec 2002
Posts: 5,132
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,132
Thanks for your bug report. Can you show me an example that reproduces this issue?

Re: /drawline doesn't report error on missing param [Re: Khaled] #270121 04/04/22 02:19 PM
Joined: Jul 2006
Posts: 3,889
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,889
An example is any call to drawline without the correct number of parameters:

Code
//window -pdof @a -1 -1 | drawline -r @a 255 50 50 100 50
;       missing the size parameter.      rgb  x  y  x1 y1     
;       drawline -r @a 255 1 50 50 100 50 works

Last edited by Wims; 04/04/22 02:21 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Re: /drawline doesn't report error on missing param [Re: Wims] #270147 10/04/22 09:31 AM
Joined: Dec 2002
Posts: 5,132
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,132
Right, the issue is not the size but the incorrect number of <x y> parameters. This has been discussed before and affects all of the /draw commands that take multiple coordinate parameters. As mentioned before, they have behaved in this way ever since they were added long ago, so their behaviour cannot be changed as that might break backward compatibility with existing scripts.