Results 1 to 9 of 9

Thread: What's the problem?

  1. #1
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default What's the problem?

    I am almost done making this script and I'm using reflection. I'm making it walk to the same point but a different path to choose from. I just now got this error because when I was using just one set of points it was working just fine. Any help would be appreciated!
    SCAR Code:
    function LoadBurnLoc: TPointArray;
    begin
      case Random(3) of
        0 : SetLength(Result, 3);
            Result[0] := (Point(3816, 3448)); <-----Line 308
            Result[1] := (Point(3190, 3450));
            Result[2] := (Point(3192, 3452));
           
        1 : SetLength(Result, 5);
            Result[0] := (Point(3187, 3445));
            Result[1] := (Point(3187, 3448));
            Result[2] := (Point(3190, 3448));
            Result[3] := (Point(3191, 3450));
            Result[4] := (Point(3191, 3452));
           
        2 : SetLength(Result, 4);
            Result[0] := (Point(3186, 3444));
            Result[1] := (Point(3185, 3449));
            Result[2] := (Point(3189, 3451));
            Result[3] := (Point(3192, 3451));
      end;
    end;

    Failed when compiling
    Line 308: [Error] (19825:11): colon (':') expected in script

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  2. #2
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    The equal signs maybe should be colons ? :S

    Only guessing though :/

  3. #3
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    It was working with just this earlier:
    SCAR Code:
    function LoadBurnLoc: TPointArray;
    begin
      SetLength(Result, 3);
      Result[0] := (Point(3816, 3448)); <-----Line 308
      Result[1] := (Point(3190, 3450));
      Result[2] := (Point(3192, 3452));
    end;

    So I don't know what the deal is :/ Thanks for looking at it tho

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  4. #4
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    SCAR Code:
    function LoadBurnLoc: TPointArray;
    begin
      case Random(3) of
        0 : begin
              SetLength(Result, 3);
              Result[0] := (Point(3816, 3448));
              Result[1] := (Point(3190, 3450));
              Result[2] := (Point(3192, 3452));
            end;

        1 : begin
              SetLength(Result, 5);
              Result[0] := (Point(3187, 3445));
              Result[1] := (Point(3187, 3448));
              Result[2] := (Point(3190, 3448));
              Result[3] := (Point(3191, 3450));
              Result[4] := (Point(3191, 3452));
            end;

        2 : begin
              SetLength(Result, 4);
              Result[0] := (Point(3186, 3444));
              Result[1] := (Point(3185, 3449));
              Result[2] := (Point(3189, 3451));
              Result[3] := (Point(3192, 3451));
            end;
      end;
    end;

    That might fix it?
    This works for me.
    Ce ne sont que des gueux


  5. #5
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Watch that be the problem. Thanks, I'll try that.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  6. #6
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Floor66 View Post
    SCAR Code:
    function LoadBurnLoc: TPointArray;
    begin
      case Random(3) of
        0 : begin
              SetLength(Result, 3);
              Result[0] := (Point(3816, 3448));
              Result[1] := (Point(3190, 3450));
              Result[2] := (Point(3192, 3452));
            end;

        1 : begin
              SetLength(Result, 5);
              Result[0] := (Point(3187, 3445));
              Result[1] := (Point(3187, 3448));
              Result[2] := (Point(3190, 3448));
              Result[3] := (Point(3191, 3450));
              Result[4] := (Point(3191, 3452));
            end;

        2 : begin
              SetLength(Result, 4);
              Result[0] := (Point(3186, 3444));
              Result[1] := (Point(3185, 3449));
              Result[2] := (Point(3189, 3451));
              Result[3] := (Point(3192, 3451));
            end;
      end;
    end;

    That might fix it?
    This works for me.

    That would be my guess to. Other then that, i have no idea.(h)

  7. #7
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    That was the problem...

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  8. #8
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    add begin's for each case
    Project: Welcome To Rainbow

  9. #9
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    I fixed it, thanks for the help tho

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problem...
    By Blumblebee in forum OSR Help
    Replies: 4
    Last Post: 12-28-2008, 07:22 AM
  2. help big problem
    By goblanca in forum OSR Help
    Replies: 3
    Last Post: 05-19-2007, 10:41 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
  •