PDA

View Full Version : Invalid Number of Parameters



BrettJ69
05-12-2016, 09:48 AM
Hey guys, first of all I know this script is as basic as it gets, it's just a herblore script I put together for a private server to make all kinds of monies. Anyway, I keep getting an 'Invalid number of parameters at line 14' error message every time I try to run it, if anyone could help me out it would be greatly appreciated!!

And here's the first 20 lines of my god awful script:

program new;
begin
repeat
ActivateClient;
MoveMouse(450, 177);
Wait(250);
ClickMouse(450, 177, mouse_right);
Wait(250);
MoveMouse(371, 279);
Wait(250);
ClickMouse(371, 279);
Wait(250);
MoveMouse(406, 174);
Wait(250);
ClickMouse(406, 174);
Wait(250);
MoveMouse(358, 276);
Wait(250);
ClickMouse(358, 276);
Wait(250);

scob
05-12-2016, 10:01 AM
Is it your full script?

Brandon
05-12-2016, 10:31 AM
One of your click mouse is correct. The rest are wrong. They are missing the mouse button parameter.

BrettJ69
05-15-2016, 09:33 AM
One of your click mouse is correct. The rest are wrong. They are missing the mouse button parameter.

Thank you for the help. Sorry seems like a really dumb question now, just got into scripting obviously :norris:

AFools
05-15-2016, 06:42 PM
Errmmm; i would honestly spend some time looking through the include and use either color/dtm or co-ords (with a variance) otherwise your acc will not spend much time until a ban.

just a heads ups.

jstemper
05-16-2016, 01:03 AM
Errmmm; i would honestly spend some time looking through the include and use either color/dtm or co-ords (with a variance) otherwise your acc will not spend much time until a ban.

just a heads ups.

Well it is for a rsps so he should be fine ban-wise. But yeah never use static wait times + clicks for rs lol