mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 4,144
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,144
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
Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
Thanks for your bug report. Can you show me an example that reproduces this issue?

Joined: Jul 2006
Posts: 4,144
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,144
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
Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
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.


Link Copied to Clipboard