Results 1 to 7 of 7

Thread: Identifier expected at line...

  1. #1
    Join Date
    Jul 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Identifier expected at line...

    Trying to make a simple but efficient NMZ script utilizing SuperAwesomeNMZ as a guide.

    I keep getting

    PHP Code:
    [ErrorC:\Simba\Scripts\FULL NMZ.simba(15:49): Identifier expected at line 16
    Compiling failed

    the script so far is...

    PHP Code:
    rogram Liquor_NMZ;

    {
    $I SRL-OSR/SRL.Simba}
    {
    $DEFINE SMART8}


    Var
      
    xyOverInteger;

    procedure DrinkOver;
    begin
      Over 
    := DTMFromString('mwQAAAHic42RgYHBiYmBwAWIPILYAYlsgdgdibyC2YoLIL2FkYFgOxLOBeAEQTwTiSVD2HCDuAmJBPj6gaYx4MTOQJITxmwDBcAAAs3EIPg==')
      
    FTab(tab_inv);
      (
    FindDTM(OverxyMIX1MIY1MIX2MIY2)) then
      begin
        MMouse
    (xy33);
        if 
    IsUpText('rink'then
          Mouse
    (xy00True);
      
    end;
      
    freeDTM(Over);
      
    FTab(tab_stats);
    end;

    Begin
    SetupSRL
    ;
    ActivateClient;
    ClearDebug;
    DrinkOverload;
    end
    thanks in advance for any help, it is much appreciated.

  2. #2
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

    Default

    Simba Code:
    Over := DTMFromString('mwQAAAHic42RgYHBiYmBwAWIPILYAYlsgdgdibyC2YoLIL2FkYFgOxLOBeAEQTwTiSVD2HCDuAmJBPj6gaYx4MTOQJITxmwDBcAAAs3EIPg==')

    This line is missing a semicolon ; at the end

  3. #3
    Join Date
    Jul 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Clarity View Post
    Simba Code:
    Over := DTMFromString('mwQAAAHic42RgYHBiYmBwAWIPILYAYlsgdgdibyC2YoLIL2FkYFgOxLOBeAEQTwTiSVD2HCDuAmJBPj6gaYx4MTOQJITxmwDBcAAAs3EIPg==')

    This line is missing a semicolon ; at the end
    you are correct but unfortunately it did not fix the issue. I even copy and pasted from the working script and it does not work.

  4. #4
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    (if FindDTM(Over, x, y, MIX1, MIY1, MIX2, MIY2)) then

    not

    (FindDTM(Over, x, y, MIX1, MIY1, MIX2, MIY2)) then

  5. #5
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default

    Your missing a 'P' in program. That will give you troubles...

    Simba Code:
    Program Liquor_NMZ;

    You are also missing an 'IF' before the 'findDTM'

  6. #6
    Join Date
    Jul 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Well the fix seemd to help but now I am getting a syntax error at line 16.

    I changed the code a little. IM going to go to bed and hopefully figure this out tomorrow.

    PHP Code:
    program Liquor_NMZ;

    {
    $I SRL-OSR/SRL.Simba}
    {
    $DEFINE SMART8}


    Var
      
    xyOverInteger;

    procedure DrinkOver;
    begin
      Over 
    := DTMFromString('mwQAAAHic42RgYHBiYmBwAWIPILYAYlsgdgdibyC2YoLIL2FkYFgOxLOBeAEQTwTiSVD2HCDuAmJBPj6gaYx4MTOQJITxmwDBcAAAs3EIPg==');
      
    FTab(tab_inv);
      (if 
    FindDTM(OverxyMIX1MIY1MIX2MIY2))
      
    then Mouse(xy44True)
      
    end;
      
    freeDTM(Over);
    end;

    Begin
    SetupSRL
    ;
    ActivateClient;
    ClearDebug;
    DrinkOverload;
    end

  7. #7
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Liquor View Post
    Well the fix seemd to help but now I am getting a syntax error at line 16.

    I changed the code a little. IM going to go to bed and hopefully figure this out tomorrow.

    PHP Code:
    program Liquor_NMZ;

    {
    $I SRL-OSR/SRL.Simba}
    {
    $DEFINE SMART8}


    Var
      
    xyOverInteger;

    procedure DrinkOver;
    begin
      Over 
    := DTMFromString('mwQAAAHic42RgYHBiYmBwAWIPILYAYlsgdgdibyC2YoLIL2FkYFgOxLOBeAEQTwTiSVD2HCDuAmJBPj6gaYx4MTOQJITxmwDBcAAAs3EIPg==');
      
    FTab(tab_inv);
      (if 
    FindDTM(OverxyMIX1MIY1MIX2MIY2))
      
    then Mouse(xy44True)
      
    end;
      
    freeDTM(Over);
    end;

    Begin
    SetupSRL
    ;
    ActivateClient;
    ClearDebug;
    DrinkOverload;
    end
    Delete the end; after mouse(x, y, 4, 4, true)

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
  •