• Log in or sign up for an account here: https://www.sythe.org/login

Range Check Error

Yeha X D

Forum Addict

Banned
Joined
Aug 27, 2005
Sythe Gold
0
Messages
296
Location
A geographic place with a street address
Ok well I keep getting a range check error at various lines where I am using MoveMouseSplineEx. I sort of know why but not completely why.

The script will compile but on use it randomly fails and gives the error. The reason is because I am putting in random variables for mouseSpeed, ctrlSpacing and ctrlVariance like so:

MoveMouseSplineEx(754,212,10,10,80+s,15+p,65+p);

Variables S and P are set in above lines as randomrange(1,10) roughly. I have tested using just pure numbers for mouseSpeed, ctrlSpacing and ctrlVariance and it eliminates the problem, also I do get a range check error if I set one of them to something huge or tiny.

I do not want mouseSpeed, ctrlSpacing and ctrlVariance to be constant yet any function of random I try to introduce seems to produce these errors.

Any help would be appreciated.
 
This does appear to fix the problem. I still am confused why this is a problem, but hey its doing the job again, so thanks. :laugh:
 
Runescape Gamblingrunescape gambling
Back
Top