Adblock breaks this site

Range Check Error

Discussion in 'Scar/Simba Help' started by Yeha X D, Jun 6, 2010.

  1. Yeha X D

    Yeha X D Forum Addict
    Banned

    Joined:
    Aug 27, 2005
    Posts:
    296
    Referrals:
    0
    Sythe Gold:
    0
    Range Check Error

    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.
     
  2. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    Range Check Error

    Try using less range (1-5 or 6-10).
     
  3. Yeha X D

    Yeha X D Forum Addict
    Banned

    Joined:
    Aug 27, 2005
    Posts:
    296
    Referrals:
    0
    Sythe Gold:
    0
    Range Check Error

    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:
     
< need script help plz | help plz! >


 
 
Adblock breaks this site