Results 1 to 3 of 3

Thread: Boolean Function

  1. #1
    Join Date
    May 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Boolean Function

    If I were to make a Function in my script that looks for a bitmap and returns true, would this work?

    SCAR Code:
    Function CheckLostConnection:Boolean;
    begin
      If(findbitmaptolerancein(LostConnection,x,y,0,0,620,480,20))then
        Result := True;
    end;

    I would rather be corrected now, than getting banned later :P

  2. #2
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea that should work, if it finds the bitmap.

  3. #3
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    4,163
    Mentioned
    9 Post(s)
    Quoted
    19 Post(s)

    Default

    yup should be fine, but also put in an else just to be sure.

    SCAR Code:
    Function CheckLostConnection:Boolean;
    begin
      If(findbitmaptolerancein(LostConnection,x,y,0,0,620,480,20))then
        Result := True;
      else
        Result := False;
    end;

    not necessary, but just good to cover all bases

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
  •