Results 1 to 6 of 6

Thread: help with first script

  1. #1
    Join Date
    Oct 2007
    Location
    ~Australia~
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    help with first script

    program noname;
    {.include SRL/SRL.scar}
    const TheMessage='ddd';
    HowManyMsgs=10;
    var x: Integer;


    begin
    wait(1000+random(2000));
    typesend (TheMessage);
    wait(250+random(250));
    begin
    x:=0;
    repeat
    x:= x + 1;
    until(x >= (HowManyMsgs);
    end;
    end.
    well iv decided for my first script i will be making a auto talker w/ login i am making the auto talk version of it first but everytime i go to complile the script i keep getting this annoying error could anybody help it would be greatly appreciated

    Line 16: [Error] (14697:25): Close round expected in script C:\Program Files\SCAR 3.12\Noname.scar
    Getting to 99 wcing

  2. #2
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    SCAR Code:
    program noname;
    {.include SRL/SRL.scar}
    const TheMessage='ddd';
    HowManyMsgs=10;
    var x: Integer;


    begin
    wait(1000+random(2000));
    typesend (TheMessage);
    wait(250+random(250));
    begin
    x:=0;
    repeat
    x:= x + 1;
    until(x >= (HowManyMsgs))
    end;
    end.

    Forgot a bracket on the until statement. Try it now
    STOP PM'ING ME

  3. #3
    Join Date
    Oct 2007
    Location
    ~Australia~
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks worked a treat such a nooby mistake lol
    Getting to 99 wcing

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

    Default

    You should read some tuts about errors, then you can fix them yourself, because this was actually just a typo.
    Ce ne sont que des gueux


  5. #5
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Most errors explain themselves so just look through your script around the place where the error was found. Sometimes the actual error is in the line above or in the last procedure.

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

    Default

    i Totally agree with the above, they always say
    Quote Originally Posted by My Teacher
    We have always learnt from our own mistakes
    Ce ne sont que des gueux


Thread Information

Users Browsing this Thread

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

Posting Permissions

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