Results 1 to 3 of 3

Thread: Error: Invalid jump in script.

  1. #1
    Join Date
    Jun 2007
    Location
    NSW, Australia.
    Posts
    541
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Error: Invalid jump in script.

    I was wondering if someone could restructure this for me so I don't get this error (My brain hurts). The code is pretty self explanatory to what it does.

    SCAR Code:
    rocedure CraftWait;
    var i, count : Integer;
    label WaitLabel;
    begin
    WaitLabel:
      count := 0;
      while (something) do
      begin
        Wait(100);
        if (ClickToContinue) then
        begin
          ClickToContinue;
          ClickToContinue;
          goto WaitLabel;
        end;
      end;
      while (Not(something)) do
      begin
        Count := Count + 1;
        if (something) then goto WaitLabel;
        if (Count > 70) then Break;
        Wait(100);
        if (ClickToContinue) then
        begin
          ClickToContinue;
          ClickToContinue;
          goto WaitLabel;
        end;
      end;
    end;

    Cheers all.
    Pancakes.In case you were wondering, I am crafting on a spinning wheel... anyway, I need to check if something is false for more than seven seconds, else reset the count.
    Quote Originally Posted by RAM View Post
    I sam sofa king wee todd did ! ~RAM
    My SRL Army Blog.


  2. #2
    Join Date
    Feb 2006
    Location
    With mooncow on the moon
    Posts
    292
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    hiya, well firstly -

    Code:
    count := 0;
    this is not needed, all interger values start with a default value of 0. So remove that.

    secondly what is 'something' did you put that in there bacuse you do not know what u need to place there?

    other than that i cannot really suggest much, i see your not using the I integer, so why is that present?

    overall about 90% of your current code is not really needed. Im not interely sure what you are trying to acheive, maybe explain in more detail?
    ~ Solemn Wishes

  3. #3
    Join Date
    Oct 2006
    Posts
    2,297
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    also why do you use
    if (ClickToContinue) then
    begin
    ClickToContinue;
    ClickToContinue;
    ?
    ClickToContinue does return true if it had found the text and when clicked, so ClickToContinue is enough.
    [QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
    [CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Invalid Jump
    By orange in forum OSR Help
    Replies: 2
    Last Post: 10-09-2008, 07:51 PM
  2. Error: Invalid jump in script?
    By Pancakes in forum News and General
    Replies: 14
    Last Post: 07-29-2007, 01:45 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
  •