Results 1 to 5 of 5

Thread: Problem with the last part of my script

  1. #1
    Join Date
    Aug 2008
    Location
    Auckland
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Problem with the last part of my script

    SCAR Code:
    End;

    begin// this is the main loop.
     Disguise('First Script Helped By Joker ');
     cleardebug;
      SetupSRL;
        declareplayers;
        ActivateClient;
        loginplayer;
        if MineCoppers then
         Begin
         MineCopper;
         FastDrop;
         repeat
         if MineTins then
          begin
          MineTin;
          Fastdrop;
          repeat
        end;
      end;
    end.
    im getting a constant painful error.
    Line 127: [Error] (16649:1): Identifier expected in script C:\Program Files\SCAR 3.15\Scripts\my iron tin power miner!.scar
    do i need to have something to do with repeat until player is false?
    ~Tom~

  2. #2
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You need Until(Condition)'s in there, to match the Repeats.

  3. #3
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    So instead of
    SCAR Code:
    repeat
         if MineTins then
          begin
          MineTin;
          Fastdrop;
          repeat

    Use

    SCAR Code:
    repeat
      if MineTins then
      begin
        MineTin;
        Fastdrop;
    until(bla!);
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  4. #4
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by R1ch4 View Post
    So instead of
    SCAR Code:
    repeat
         if MineTins then
          begin
          MineTin;
          Fastdrop;
          repeat

    Use

    SCAR Code:
    repeat
      if MineTins then
      begin
        MineTin;
        Fastdrop;
    until(bla!);
    I think you want an end after Fastdrop, but yeah, that looks more or less right to me. Just make sure to put a failsafe into the loop to terminate it incase it gets stuck infinitely repeating.

  5. #5
    Join Date
    Aug 2008
    Location
    Auckland
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OK got it working i did it like this
    until not Loggedin;
    NextPlayer(false);
    until false;
    so yea kapish!
    Now i just need to make some anit bann, and a sig.
    ~Tom~

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Part Made Script - Big one
    By HarryJames in forum First Scripts
    Replies: 4
    Last Post: 11-08-2008, 01:48 PM
  2. need help with part of script!
    By vikrant60 in forum OSR Help
    Replies: 6
    Last Post: 05-09-2008, 10:52 AM
  3. Problem Accessing Main Part of SRL-Forums
    By Light in forum SRL Site Discussion
    Replies: 29
    Last Post: 09-11-2007, 11:42 PM
  4. Part of my first script[Problem]
    By Dude in forum First Scripts
    Replies: 7
    Last Post: 08-20-2007, 05:42 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
  •