Results 1 to 6 of 6

Thread: Unknown Identifier, Need assistance :D

  1. #1
    Join Date
    Dec 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Unknown Identifier, Need assistance :D

    Ey, was doing a little script writing, and I took a template and wrote over it with a diffrent code, as I was nearing the testing phase, it wouldnt compile stating unknown identifier???

    program Huntsman;
    var
    X,Y: Integer;
    procedure sum;
    begin
    //1
    wait(1000)
    FindObjCustom(x,y,['alk', 'talk', 'untsman', 'igli'], [1788491, 1324599, 1524033, 1656390, 2556967], 3)
    MMouse(X, Y, 1, 1);
    ClickMouse2(True);
    Writeln('Talking to Hunter, Cross yer fingers');
    Wait(600+random(250));
    Waitoption('rade', 3000);
    Wait(3500+random(250));
    end;



    Error] (9:7): Unknown identifier 'FindObjCustom' at line 8
    Compiling failed.

  2. #2
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    Define SRL in the beginning. Are you using this with smart? Define it with smart then as well.

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  3. #3
    Join Date
    Dec 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ooh, so I have to {$i SRL/SRL.simba}?

    Not SMART, it's for RSPS.

  4. #4
    Join Date
    Dec 2011
    Location
    Ontario, Canada
    Posts
    1,735
    Mentioned
    5 Post(s)
    Quoted
    89 Post(s)

    Default

    Well you need to declare FindObjCustom before that particular procedure. You must state it as a function (refer to list of functions in SRL resource) and then you can declare it later like in this procedure I believe. FindObjCustom is a function because it will return something, in this case a true/false and follow through with what you ask it to do.

    Please correct me if I am wrong. I have not looked at scripting in quite a long time.
    FEEL FREE TO PM ME ABOUT ANYTHING! Will help over Teamviewer...just ask!! "WITH A NEW QUESTION COMES A NEW CHALLENGE"
    Silentcore's AIO Service team !!! Pm me if you want questing done or service done or post on thread ofc

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

    Default

    Use this as a start for making scripts

    Simba Code:
    program myprogram;
    {$DEFINE SMART}
    {$i srl/srl.simba}

    begin


    end.

  6. #6
    Join Date
    Jul 2012
    Posts
    279
    Mentioned
    5 Post(s)
    Quoted
    46 Post(s)

    Default

    ^^^^
    You don't want {$DEFINE SMART} in your script if you're using it for RSPS.

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
  •