Log in

View Full Version : Divide by zero in MMouse?



MeKillsYou
09-10-2007, 03:23 PM
I am getting this error:

[Runtime Error] : divide by Zero in line 80 in script C:\Program Files\SCAR 3.11\includes\SRL/SRL/Core/Mouse.scar.

Help?



For easy reference:

randSpeed:= (random(MouseSpeed) / 2.0 + MouseSpeed) / 10.0;
getMousePos(cx,cy);
x:= x + random(rx);
y:= y + random(ry); ---(This is line 80)---
WindMouse(cx,cy,x,y,9.0,3.0,10.0/randSpeed,15.0/randSpeed,10.0*randSpeed,10.0*randSpeed);

Rikje
09-10-2007, 03:42 PM
Make sure you have Called ''SetUpSrl;''. or set a mouse speed on you one.

when you have vista. its just a anying bug. try to run scar as administator. mostenly it works then.

MeKillsYou
09-10-2007, 04:25 PM
ooh Stupid :p
I didnt have SetUpSrl
tnx a lot!

Rikje
09-10-2007, 04:27 PM
hehe np ;)