Results 1 to 4 of 4

Thread: help with small problem

  1. #1
    Join Date
    Jan 2014
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default help with small problem

    begin
    try
    Result := TMufasaBitmap.Create;
    Result.SetSize(120, 120);

    c := getTClient;
    Result.CopyClientToBitmap(
    c.IOManager, false, 0, 0, MMCX-60, MMCY-60, MMCX+60, MMCY+60
    );

    except
    Writeln('SPS_GatherMinimap ERROR: '+ExceptionToString(ExceptionType, ExceptionParam));
    end;
    end;

    procedure SPS_FilterMinimap07(var Minimap: TMufasaBitmap);
    var
    W, H, x, y: integer;




    That's the code, it keeps saying Exception in Script: Unknown declaration "getTClient" at line 52, column 10

  2. #2
    Join Date
    Jan 2012
    Location
    Netherlands
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Which Simba Verion are you using?
    I guess you use 1.0 looking at your join date.

    0.99 still uses Pascal which is used for OSR.

    Simba Code:
    program new;
    var
      c : Integer ;
    begin
      c :=  GetTClient ;
    end.

    That script Compiles without any errors for me on Version .99

    You can download 0.99 right here

    And the OSR install is explained here

  3. #3
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    If the code above does not compile, then (in the menubar) click "Script -> Interpreter -> PascalScript"
    !No priv. messages please

  4. #4
    Join Date
    Jan 2012
    Location
    Netherlands
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by warpie View Post
    If the code above does not compile, then (in the menubar) click "Script -> Interpreter -> PascalScript"
    Thats also an option, my simba used to crash when doing so.

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
  •