Results 1 to 13 of 13

Thread: FindObjCustom?

  1. #1
    Join Date
    Jan 2013
    Posts
    167
    Mentioned
    1 Post(s)
    Quoted
    33 Post(s)

    Default FindObjCustom?

    Hey I'd like to know how come when i attempt to type this (FindObjCustom) it doesn't work :z it says its invalid or something along those lines im not sure if i have to add it but it would be great if someone could help me cheers

  2. #2
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    post the error you have, and function .

    I have a hunch that your parameters are wrong.

    Creds to DannyRS for this wonderful sig!

  3. #3
    Join Date
    Jan 2013
    Posts
    167
    Mentioned
    1 Post(s)
    Quoted
    33 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    post the error you have, and function .

    I have a hunch that your parameters are wrong.
    Error.png

  4. #4
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Ok check this:

    - U forgot to include SRL, cause it's a SRL function.
    - Your parameters were wrong.
    - The Text and color parameters need brackets! [ ] Because they are Arrays.
    U can use CTRL + Space on the function to check the parameters or use
    the functionlist left of SIMBA

    Simba Code:
    program New;
    {$i SRL\SRL.simba}  // include SRL

    procedure FindTheObj;
    var
      x, y: integer;
    begin
      if  FindObjCustom(x, y, ['Up', 'Text'], [143143,154356], 15) then blablabal;
    end;

    begin
      SETUPSRL;  // don't forget this!
      Findtheobj;
    end.

    Creds to DannyRS for this wonderful sig!

  5. #5
    Join Date
    Jan 2013
    Posts
    167
    Mentioned
    1 Post(s)
    Quoted
    33 Post(s)

    Default

    ooooooooo tysm

  6. #6
    Join Date
    Jan 2013
    Posts
    167
    Mentioned
    1 Post(s)
    Quoted
    33 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    Ok check this:

    - U forgot to include SRL, cause it's a SRL function.
    - Your parameters were wrong.
    - The Text and color parameters need brackets! [ ] Because they are Arrays.
    U can use CTRL + Space on the function to check the parameters or use
    the functionlist left of SIMBA

    Simba Code:
    program New;
    {$i SRL\SRL.simba}  // include SRL

    procedure FindTheObj;
    var
      x, y: integer;
    begin
      if  FindObjCustom(x, y, ['Up', 'Text'], [143143,154356], 15) then blablabal;
    end;

    begin
      SETUPSRL;  // don't forget this!
      Findtheobj;
    end.
    i get this error now Exception in Script: Operator expected at line 453, column 93 in file "C:\Simba\Includes\SRL\SRL\core\gametab.simba"

  7. #7
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Are you running gametab.simba, or the actual script?

  8. #8
    Join Date
    Jan 2013
    Posts
    167
    Mentioned
    1 Post(s)
    Quoted
    33 Post(s)

    Default

    Quote Originally Posted by NKN View Post
    Are you running gametab.simba, or the actual script?
    I just clicked the run (the green arrow)

  9. #9
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by Hexless View Post
    I just clicked the run (the green arrow)
    Which file did you run?
    Gametab.simba
    Or your script?

  10. #10
    Join Date
    Jan 2013
    Posts
    167
    Mentioned
    1 Post(s)
    Quoted
    33 Post(s)

    Default

    my script

  11. #11
    Join Date
    Jan 2013
    Posts
    167
    Mentioned
    1 Post(s)
    Quoted
    33 Post(s)

    Default

    Quote Originally Posted by NKN View Post
    Which file did you run?
    Gametab.simba
    Or your script?
    nvm fixed it ty tho

  12. #12
    Join Date
    Mar 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    How did you fix the gametab error? I am having that problem as well, but not with any particular script.

  13. #13
    Join Date
    Jan 2013
    Posts
    167
    Mentioned
    1 Post(s)
    Quoted
    33 Post(s)

    Default

    Quote Originally Posted by pennengr View Post
    How did you fix the gametab error? I am having that problem as well, but not with any particular script.
    This is what i did to fix it

    Go to the dropdown thing that says script then go to interpreter then make sure its on PascalScript then it should work (it did for me)

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
  •