Results 1 to 11 of 11

Thread: How do I tell the script to restart the repeat untill loop?

  1. #1
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How do I tell the script to restart the repeat untill loop?

    Title says it all. I know in C++ I can use continue; but what do I use for scar?

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

    Default

    Same with scar

  3. #3
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i cant find it in the manual though?????

    Ill just use it lol

    I can always use labels if it doesn't work

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

    Default

    Actually, I don't think you can use labels. You can't jump into a loop, out of a loop, or to another loop. I don't think you can jump within a loop either.

    But it does work. I use it a lot.

  5. #5
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Yeah I think the best way would be to use labels.


    EX:

    SCAR Code:
    label
     GoHere;
    begin
      GoHere:
      repeat
        DoThis;
      until (This)
      goto GoHere;
    end.

    Just remember that you can't break in or out if any loops..

    EDIT: Ok.. apparently some people don't like when you reinforce their opinion and post an example.. So um please ignore my post?? Idk.. You can't please anyone anymore...

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

    Default

    Did you not read my post...? CONTINUE

  7. #7
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I did lol, i said id use labels if that "didn't work"

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

    Default

    I was talking to derek

    EDIT: Ugh, did that come out mean? Sorry. I always sound mad when I'm not >.<

  9. #9
    Join Date
    Mar 2006
    Location
    United States, -7:00 GMT
    Posts
    1,790
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Do not mind bullzeye, he's only 10 and he has to take his anger out somewhere. Right?

    hakuna matata ;)

  10. #10
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Pff...Bullzeye is older than me
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

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

    Default

    Quote Originally Posted by Ejjman1 View Post
    Do not mind bullzeye, he's only 10 and he has to take his anger out somewhere. Right?
    Yeh, I'll beat you in bloody knuckles any day. n00b

    Ejjman iz lyk 9 k???////

    /spam

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Repeat loop runtime error??? Huh????
    By Pure1993 in forum OSR Help
    Replies: 7
    Last Post: 08-16-2008, 09:55 PM
  2. Fail-safes, repeat and loop tutorial
    By solemn wishes in forum Outdated Tutorials
    Replies: 15
    Last Post: 12-12-2007, 09:22 AM
  3. restart script?
    By acevampire in forum OSR Help
    Replies: 5
    Last Post: 03-30-2007, 07:02 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
  •