Results 1 to 8 of 8

Thread: FindRoadColor?

  1. #1
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default FindRoadColor?

    ok, when i use findroadcolor; it normally works, but i added it once, and now my script isnt compiling. Here is what i have
    SCAR Code:
    //RoadC := FindRoadColor;
    //and a while down,
    RoadC := FindRoadColor;

    This will work, they are in dif procedures though. In the commented proc, it doesnt work, when i uncomment i get this...

    Code:
    Line 65: [Error] (17726:7): colon (':') expected in script G:\SCAR 2.03\Scripts\****
    
    //and after i get rid of the = after the :
    
    Failed when compiling
    Line 65: [Error] (17726:9): Unknown type 'FindRoadColor' in script G:\SCAR 2.03\Scripts\****
    What does this mean?

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Could you post the script?

  3. #3
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    i didnt think u needed the : just the =
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  4. #4
    Join Date
    Mar 2007
    Posts
    138
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ya when doing
    Code:
    RoadC := FindRoadColor;
    you don't need the : so this is what it should look like

    Code:
    //RoadC = FindRoadColor;
    //and a while down,
    RoadC = FindRoadColor;

  5. #5
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    RoadC:=FindRoadColor; is the correct way to do it. It must be something else that's screwing up.

    Post the script. Until you do that, nobody can really help you.

  6. #6
    Join Date
    Mar 2007
    Posts
    138
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmmm well i did it without the : and it worked perfectly

  7. #7
    Join Date
    Apr 2007
    Posts
    220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This is the good way:
    SCAR Code:
    RoadC := FindRoadColor;
    If all the things the ppl above this post said didn't worked maybe then you forgot to put SRL in your script? Cuz else your script prob knew what FindRoadColor is. Just under
    SCAR Code:
    program yourproggie;
    put this:
    SCAR Code:
    {.Include SRL/SRL.scar}

    If this all doesn't work, post the script. So we can see it(And fix)

  8. #8
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    well for some reason it works now... i dont know what i did... and since i fixed it, i dont want to post it, cause i sorta wanna keep it secret until its released.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FindRoadColor
    By Bobzilla69 in forum Research & Development Lounge
    Replies: 2
    Last Post: 07-03-2008, 07:17 AM
  2. FindRoadColor; problem
    By cocodog13 in forum OSR Help
    Replies: 7
    Last Post: 03-28-2008, 03:35 AM
  3. FindRoadColor Problem
    By jackkat in forum OSR Help
    Replies: 4
    Last Post: 06-02-2007, 09:14 PM

Posting Permissions

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