Results 1 to 5 of 5

Thread: Help with odd error!

  1. #1
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help with odd error!

    What does:

    Line 68: [Error] (17729:2): Assignment expected in script C:\Program Files\SCAR 2.03\Scripts\Duler.scar

    Mean?

    This is the procedure:

    PHP Code:
    Procedure Accept1;
    Begin
              Sleep
    (1000)
              If (
    findcolorTolerance(xy32768 MSX1MSY1MSX2MSY225)) Then
              Begin
                Repeat
                Sleep
    (1000)
                
    MMouse(xy33);
                
    Mouse(xy33True);
                
    h=:h+<---- Line 68
                Until 
    (h=2)
                 If(
    not (Gametab(4))) Then
                  Begin
                  Repeat
                   FTWait
    (1000)
                  
    Until(InChat('Well done!') Or InChat('Oh dear'))
    End;
              
    End;
                 
    End

    Help please?

  2. #2
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    SCAR Code:
    h:= h + 1;//you turned arount the : and =
    Infractions, reputation, reflection, the dark side of scripting, they are.

  3. #3
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know, i edited it but it doesn't seem to have worked, wierd .

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

    Default

    Hm..I would have to see the whole script, but I've never seen such a command line as...

    SCAR Code:
    h:=h+1 <---- Line 68

    Do you want that Line 68 part to be commented...Those are // if you do.

    SCAR Code:
    Procedure Accept1;
    begin
      wait(1000);
      if(findcolorTolerance(x, y, 32768 , MSX1, MSY1, MSX2, MSY2, 25))then
      begin
        repeat
          Sleep(1000)
          MMouse(x, y, 3, 3);
          Mouse(x, y, 3, 3, True);
          h:=h+1
        until (h=2)
          ff(not(Gametab(4)))then
          begin
            repeat
              FTWait(1000)
            until(InChat('Well done!') Or InChat('Oh dear'))
          end;
      end;
    end;[SCAR]
    [/SCAR]

    Changes would be the sleep to wait though there the same, don't make a habbit of capitilizing all your command stuff, and changed the h thing to h := h+1 ... That is what its suppose to be. So..Good luck, if you still have troubles, either post here again, or PM me personally your script and I'll take a look.

    hakuna matata ;)

  5. #5
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ejjman1 View Post
    Hm..I would have to see the whole script, but I've never seen such a command line as...

    SCAR Code:
    h:=h+1 <---- Line 68

    Do you want that Line 68 part to be commented...Those are // if you do.

    SCAR Code:
    Procedure Accept1;
    begin
      wait(1000);
      if(findcolorTolerance(x, y, 32768 , MSX1, MSY1, MSX2, MSY2, 25))then
      begin
        repeat
          Sleep(1000)
          MMouse(x, y, 3, 3);
          Mouse(x, y, 3, 3, True);
          h:=h+1
        until (h=2)
          ff(not(Gametab(4)))then
          begin
            repeat
              FTWait(1000)
            until(InChat('Well done!') Or InChat('Oh dear'))
          end;
      end;
    end;[SCAR]
    [/SCAR]

    Changes would be the sleep to wait though there the same, don't make a habbit of capitilizing all your command stuff, and changed the h thing to h := h+1 ... That is what its suppose to be. So..Good luck, if you still have troubles, either post here again, or PM me personally your script and I'll take a look.


    1. I know, that's just telling you guys what line it was.

    2. I sorted it out, i'm only having troubles with the wait time not .

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Line 135: [Error] (14845:1): Syntax error in script
    By AbsTrACt'^.| in forum OSR Help
    Replies: 16
    Last Post: 05-23-2008, 01:14 PM
  2. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  3. Smart error and Some kind of Math.scar error
    By FagetHax0r in forum OSR Help
    Replies: 6
    Last Post: 02-24-2008, 10:43 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
  •