Results 1 to 7 of 7

Thread: LastChatter Bug?

  1. #1
    Join Date
    Sep 2007
    Location
    Bikini Bottom
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default LastChatter Bug?

    Hi everyone (again),

    Yep, this is my 3th question in 24 hours. But whatever, i ask it anyway.
    I wanted to use the function LastChatter(S:String):Boolean, but he gives some error, saying:
    Error line xx: Variable expected.
    I first used a const but when i changed it into a variable it gives another weird error...
    Any known bugs concerning LastChatter? If not, how can i determine the last chatter without the function?

  2. #2
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    How do you use it in your script?
    Hup Holland Hup!

  3. #3
    Join Date
    Sep 2007
    Location
    Bikini Bottom
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    if(LastChatter(nickname))then
    When i make nickname a constant, it says
    Code:
    ERROR Variable Expected
    So when i turn it into a variable it says:
    Code:
    ERROR Identifier Expected
    So what's the problem?

  4. #4
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program New;
    {.Include SRL\SRL.scar}

    var
      NickName: string;

    begin
      setupsrl;
      nickname:= 'its me';
      if(LastChatter(nickname))then
      WriteLn('hi') else
        WriteLn('no shit');
    end.

    this works for me.

  5. #5
    Join Date
    Sep 2007
    Location
    Bikini Bottom
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  6. #6
    Join Date
    Sep 2007
    Location
    Bikini Bottom
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No it still doesn't work
    Very strange indeed...
    It says (when compiled):
    ERROR: Idendifier expected
    And it puts the cursor behind nickname:='something'
    I really don't get it....

  7. #7
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Do you define NickName as a string variable?
    Hup Holland Hup!

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
  •