Results 1 to 6 of 6

Thread: 'Unknown identifier'

  1. #1
    Join Date
    Dec 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default 'Unknown identifier'

    So, I have been working on a script, and I have been coming across this error i am kinda new to Simba, so, I will be thankful for any advice!

    I also am having trouble on logging in :-/. If anyone would know any working logging in 'declare players', plz tell me

    Simba Code:
    program Script;

    {$DEFINE Smart}
    {$i SRL\SRL.scar}
    {$i sps/sps.simba}

    Procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
      with Players[0] do
        begin
        Name        := 'XXXXXXX';
        Pass        := 'XXXXXXX';
        Pin         := '';
        BoxRewards  := ['XP','xp','lamp'];
        LampSkill   := 'Farming';
        Active      := True;
      end;
    end;

    var
    X, Y, pieshell : Integer;

    procedure LoadDTM;
    begin
    pieshellDTM := DTMFromString('78DA636C676060486040014BAB3DC0342394C' +
           'F381948A830A0012654350F81841501353F80441401352780C426' +
           '026AFA80C40E026A2280C41E026ADC89B00BE4A79504D42802892' +
           '904D448028942026AA488081F2520E14D408D2611716100244C08' +
           'A8B103123A04D4441291365281840C11E9670601352F81440F013' +
           '59F8044357E3500B7E31420');
           end;

    procedure Findpieshell;
    begin
    Recult:= FindDTM(pie shellDTM, X, Y, MIX1, MIY1, MIX2, MIY2);
    if Find pie shell then
    Mouse(x,y, 0, 0, True);
    end;


    begin
      SetUpSRL;
      ActivateClient;
      DeclarePlayers;
      FreeDTM(PieShellDTM);
      LoadDTM;
      Findpieshell;
    end.

    Thanks for any help xD, I know I have been posting a lot ... :-(
    Last edited by i need to bot!; 01-11-2012 at 10:56 PM.

  2. #2
    Join Date
    Feb 2011
    Location
    Earth
    Posts
    1,784
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    What line has the error?

    Currently: Working on Defending&Attacking in my Castle-Wars Script
    Project Rebuild: 90M/170M

  3. #3
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    You need to put
    Simba Code:
    LoginPlayer
    after DeclarePlayers

    Edit: Oh, and DeclarePlayers should look like this:

    Simba Code:
    procedure DeclarePlayers;
    begin
      HowManyPlayers:= 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name      := '';
      Players[0].Pass      := '';
      Players[0].Nick      := '';
      Players[0].Pin       := '';
      Players[0].Active    := true;

    end;

  4. #4
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    change:

    pieshell-DTM := to pieshell := (line 28)
    procedure Findpieshell; to function Findpieshell:boolean; (line 36)
    Recult:= FindDTM(pie shellDTM to to Result:= FindDTM(pieshell (line 38)
    if Find pie shell then to if result then (line 39)
    FreeDTM(PieShellDTM); to FreeDTM(PieShell); (line 48)

  5. #5
    Join Date
    Dec 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks :-)

    As always, great response from the community

  6. #6
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Griff, the way DeclarePlayers is setup in that script is fine Your way is old school
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


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
  •