mIRC Homepage
Posted By: Wims /drawline doesn't report error on missing param - 03/04/22 08:31 PM
I missed the size parameter and /drawline did not report an error, it should, all the parameters are required.
Thanks for your bug report. Can you show me an example that reproduces this issue?
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
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.
© mIRC Discussion Forums