Results 1 to 3 of 3

Thread: I dont get it...

  1. #1
    Join Date
    May 2007
    Location
    Seattle, WA
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default I dont get it...

    SCAR Code:
    program stakingautotyper;

    {.include SRL\SRL.scar}

    const
    amount = '100 to 200k';


    procedure randomtype;

    begin
    Case random(15) of
    0:  TypeSend('staking '+amount+' - my rules')
    1:  TypeSend('staking '+amount+' --- my rules')
    2:  TypeSend('stking '+amount+' - my rules')
    3:  TypeSend('staking '+amount+' -- my rules')
    4:  TypeSend('staking '+amount+' my rules')
    5:  TypeSend('staking '+amount+' my rules please')
    6:  TypeSend('staking '+amount+' my rules only')
    7:  TypeSend('steaking '+amount+' my rules')
    8:  TypeSend('white:staking '+amount+' my rules - angel')
    9:  TypeSend('staking '+amount+' my rules only - angel')
    10:  TypeSend('white:stekaing '+amount+' my rules')
    11:  TypeSend('white:staking '+amount+' --- my rules')
    12:  TypeSend('staking '+amount+' my rules only pls')
    13:  TypeSend('staking '+amount+' my rules')
    14:  TypeSend('whte:staking '+amount+' my rules - angel')
    end;
    end;

    begin
    setupsrl;
    wait(5000);
    repeat
    if(isfkeydown(1))then
    randomtype;
    else
    wait(0)
    until(false)
    end.

    I keep getting identifer expected error.
    Dont I have an end for every begin and an an until for ever repeat?

  2. #2
    Join Date
    Feb 2006
    Posts
    406
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    the problem is with your if statement

    if you are going to use else, dont put a semicolon after the first one(not sure exactly why)

    anyway, just change it to:

    if(isfkeydown(1))then
    randomtype
    else
    wait(1)

    and youre good

  3. #3
    Join Date
    May 2007
    Location
    Seattle, WA
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh, ok. thanks. I thought procedures had to have semi colons after them =\
    thanks a ton though.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. i dont get it
    By sjlou in forum OSR Help
    Replies: 4
    Last Post: 09-13-2007, 04:53 PM
  2. i really dont know what to do
    By ShowerThoughts in forum OSR Help
    Replies: 7
    Last Post: 07-27-2007, 09:23 PM
  3. eh i dont get it...
    By yamaha317 in forum OSR Help
    Replies: 7
    Last Post: 07-13-2007, 01:05 AM

Posting Permissions

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