Results 1 to 9 of 9

Thread: ]Runtime error] with FindColorTolerance()

  1. #1
    Join Date
    Jan 2009
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ]Runtime error] with FindColorTolerance()

    Hey everyone, here is my problem. When I try to use FindColorTolerance With ANY client(when i drag crosshair in scar to client), it returns:
    [Runtime Error] : Exception: Canvas does not allow drawing in line 240 in script C:\Documents and Settings\Admin\Desktop\Alcher.scar

    Any idea what could fix this? Ive tried redownloading Scar, that didnt work.

    I am on Windows xp professional, Using scar 3.15b portable edition, and do NOT have admin capabilities.(dont let the username fool you.)

  2. #2
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I got that the other day! I fixed it, please post your script
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  3. #3
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    X1-Y1---------------------------|
    |                               |
    |                               |
    |                               |
    |                               |
    |                               |
    |------------------------------X2-Y2

    I hope the picture explains all.


  4. #4
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What browser do you use?

  5. #5
    Join Date
    Jan 2009
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Cazax, nope, sorry, but that didnt help, if i dont set a client it can draw the rectangle, but i cant use other features in my code.

    I use FireFox browser.

    I got my code as an attachment

  6. #6
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Nope it compiles for me.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  7. #7
    Join Date
    Jan 2009
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lolz, hmmmmmmmm thats wierd. any suggestions? You said this happend to you the other day, what did you do to fix it?

  8. #8
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    damn, Iv'e gone and forgoten now
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  9. #9
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by noidea View Post
    Nope it compiles for me.
    All runtime errors compile.


    Try using these vars instead

    FindColorTolerance(x,y,alchcolor,mix1,miy2,mix2,mi y2,5)


    Edit: go check out globals.scar for other cool stuff too. And call activateclient after setupsrl, and integers are automatically 0 at the start, also you don't need '=true'.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Runtime Error
    By Pixelate in forum OSR Help
    Replies: 2
    Last Post: 08-11-2008, 01:35 PM
  2. [Runtime Error] : Exception: buffer error
    By GasMan in forum OSR Help
    Replies: 11
    Last Post: 05-13-2007, 02:07 PM
  3. Runtime Error
    By CamHart in forum OSR Help
    Replies: 2
    Last Post: 11-23-2006, 05:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •