Results 1 to 6 of 6

Thread: Big Indentifier Problemmm! :P

  1. #1
    Join Date
    Mar 2008
    Posts
    54
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Big Indentifier Problemmm! :P

    I will post the problematic part of my script, as well as a few lines before it.

    SCAR Code:
    {//Chat Greeting\\}
      if InChat('Hi') or InChat('Hello') or InChat('Yo')
         or InChat('Hey') then
      begin
        Result := false;
        case random(7) of
          0: TypeSend('Hi');
          1: TypeSend('So boring...');
          2: TypeSend('Go away.');
          3: TypeSend('Only ' + IntToStr(Players[CurrentPlayer].Integers[1] - Items)
                              + ' to go!');
          4: TypeSend('Hello');
          5: TypeSend('Wuzup');
          6: TypeSend('Yo');
        end;
      end;
    {/////////////////\\\\\\\\\\\\\}
    {          Do the spell        }
    {\\\\\\\\\\\\\\\\\/////////////}

    procedure DoTehSpell;
    begin
      repeat
        Mouse(829,501,3,2,true);
        Wait(1527+Random(320));
      until False;
    end;

    begin
    end.

    The error is under "///Do the spell\\\", the procedure line

    It says

    Line 232: [Error] (12875:1): Identifier expected in script

    Thanks to anyone who could help, me and R0b0t have been going over this in SRL java chat, and cannot see the problem, thanks to anyone who helps

    Also sorry for having 2 threads of the first page, but this problem has nothing to do with my earlier one.

    Sorry again.
    If I see you autoing with level 3 account and default clothes I WILL report you. Add this to your sig it'll make you cool .
    Auto properly

    http://a.imagehost.org/0181/trueee.png
    http://www.stats.srl-forums.com/sigs/4818.png

  2. #2
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You need 3 ends b4 the dotehspell procedure.

  3. #3
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    its the false, you have to give it a value like, true or false, otherwise it dont know what you are looking for to react to

  4. #4
    Join Date
    Oct 2006
    Location
    I'm also from Michigan!
    Posts
    563
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    its kinda just in the middle of nowhere......that could be a problem..try putting it in a procedure/function or the mainloop?

    EDIT: the "//chat greeting\\" I mean.

  5. #5
    Join Date
    Mar 2008
    Posts
    54
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ahh Rspro, you are TOO clever, I would have never spotted that, thanks :P
    If I see you autoing with level 3 account and default clothes I WILL report you. Add this to your sig it'll make you cool .
    Auto properly

    http://a.imagehost.org/0181/trueee.png
    http://www.stats.srl-forums.com/sigs/4818.png

  6. #6
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    np man.. i love to help out if i know the problem =P

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Duplicate Indentifier (never had before)
    By Runaway in forum OSR Help
    Replies: 5
    Last Post: 11-24-2008, 01:56 PM
  2. Replies: 10
    Last Post: 10-01-2008, 08:43 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
  •