Results 1 to 2 of 2

Thread: cant make talker please help me

  1. #1
    Join Date
    Mar 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default cant make talker please help me

    hi im new here trying to make talker maybe any1 can help?
    i get error
    Error: Found unexpected token "op_Dot" at line 15
    Compiling failed.

    program new;
    {$DEFINE SMART8}
    {$DEFINE SMART}
    {$i AeroLib/AeroLib.Simba}

    const
    Username = ''; {Username}
    Password = ''; {Password}

    Text = '';

    var
    P:Integer;

    Me.Name := Username;
    Me.Pass := Password;
    begin
    repeat
    P := countMMDots('white');
    if (P > 0) then TypeSend(IntToStr(Text));
    wait(randomrange(4800,5300));
    until(false);
    end.

  2. #2
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    I'll just tell you the mistake you made, maybe someone is willing to expand on it:
    You are doing something that isn't valid syntax in lape. "var Me.Name := Username", and "var Me.Pass := Password".
    Assign the fields of "me" within the begin .. end block. Not in the "var"-block.

    Simba Code:
    var
      P:Integer;
    begin
      Me.Name := Username;
      Me.Pass := Password;
      repeat
        P := countMMDots('white');
        if (P > 0) then TypeSend(IntToStr(Text));
        wait(randomrange(4800,5300));
      until(false);
    end.

    This is assuming "me"-variable actually exists in aerolib, I would not know. if i doesn't then you'd get a new error which has to be solved..
    As you aren't actually using "me" you can remove the two assignments "me.name := username" and "me.pass := password". At least until you actually need it.


    The var-block is for declaring of new variables, not for assigning to existing variables.
    Last edited by slacky; 03-25-2016 at 01:32 AM.
    !No priv. messages please

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
  •