Range Check Error

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

Range Check Error
  1. Unread #1 - Jun 6, 2010 at 4:08 AM
  2. Yeha X D
    Joined:
    Aug 27, 2005
    Posts:
    296
    Referrals:
    0
    Sythe Gold:
    0

    Yeha X D Forum Addict
    Banned

    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.
     
  3. Unread #2 - Jun 6, 2010 at 3:30 PM
  4. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    Range Check Error

    Try using less range (1-5 or 6-10).
     
  5. Unread #3 - Jun 6, 2010 at 10:56 PM
  6. Yeha X D
    Joined:
    Aug 27, 2005
    Posts:
    296
    Referrals:
    0
    Sythe Gold:
    0

    Yeha X D Forum Addict
    Banned

    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! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site