Results 1 to 3 of 3

Thread: Little Help?

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

    Default Little Help?

    function Duel: Boolean;
    begin
    If (findcolorTolerance(x, y, 12926 , MCX1, MCY1, MCX2, MCY2, 25)) Then
    Begin
    MMouse(x, y, 3, 3);
    Mouse(x,y,3,3, True);
    Result := True
    End;
    else//<---- That's line 17
    Begin
    WriteLn('OMFG It''s False');
    Result := False;
    End;
    End;

    Whats wrong with that?

    Giving me this:

    Line 17: [Error] (15515:1): Identifier expected in script C:\Program Files\SCAR 2.03\Scripts\Duler.scar

  2. #2
    Join Date
    Feb 2006
    Location
    Myrtle Beach, SC USA!
    Posts
    841
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    function Duel: Boolean;
    begin
      if ( FindColorTolerance ( x, y, 12926 , MCX1, MCY1, MCX2, MCY2, 25 )) Then
       begin
         MMouse(x, y, 3, 3);
         Mouse(x,y,3,3, True);
         Result := True
       end  //<------ No Semicolon ( one of these ; ) in here
      else //<---- nothing wrong here but the line above is added to this line at compile time
       begin
         WriteLn('OMFG It''s False');
         Result := False;
       End;
    End;

    no Semicolin in a if then else statement

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

    Default

    Ah, thanks Dank, time to go test the script .

    Edit: Sometimes the script says its true, but still tries to open duel screen and keeps on talking .

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
  •