Results 1 to 6 of 6

Thread: FindObjCustom help

  1. #1
    Join Date
    May 2012
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default FindObjCustom help

    Hi .... im new ... im trying to learn to script .....

    im watching Yohojo's tutorials .... and there awsome ... but ... i cant quite figure out the problem i have with this

    Code:
    function Chop: Boolean;
    var
      x, y: Integer;
    Begin
      If FindObjCustom(x, y, 'Chop', 'down', 'p d'), (2501689, 2568773, 3950426, 2501689, 3029317), 10) Then
      WriteLn ('Found It');
    End;

    when i try to compile to see if it works all it says is

    [Error] (75:48): 'THEN' expected at line 74
    Compiling failed.

    can anyone help me solve this problem please please dont say coz i have ... repeatedly lol

  2. #2
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It's better if you can post the whole script.

  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Too many parenthesis!

    Simba Code:
    If FindObjCustom(x, y, 'Chop', 'down', 'p d'), (2501689, 2568773, 3950426, 2501689, 3029317), 10) Then

    should be

    Simba Code:
    If FindObjCustom(x, y, ['Chop', 'down', 'p d'], [2501689, 2568773, 3950426, 2501689, 3029317], 10) Then

    ^Something more like that
    Not 100% sure, but mine's closer than yours .

    Make the video full screen and highest quality to see the code more clearly! Good luck.

    Also wrong section, this belongs in scripting help section.
    Moved it!

  4. #4
    Join Date
    May 2012
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lmao thanks yohojo and i have the video in full screen and on 1080p coz my laptops kool lol i just didnt see that they where [] rather than ()

    P.S your videos are awsome help lol

    EDIT: it has now compiled properly

  5. #5
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OMG! Feel so dumb for not seeing that error

  6. #6
    Join Date
    May 2012
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by CephaXz View Post
    OMG! Feel so dumb for not seeing that error
    now imagine how dumb i feel watching the tutorial and STILL creating the error in the first place :P

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
  •