Results 1 to 10 of 10

Thread: Variable Expected

  1. #1
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default Variable Expected

    SCAR Code:
    Function AreYouAtMonastery:Boolean;
    Var
      Monastery:integer;
    Begin
      if Not LoggedIn Then Exit;
              Monastery := DTMFromString('78DA6394636060906740012C8C8C609A11CA6' +
             '7B40712ACA86ABE7CFA82AAC60E48D81150C389A9262B2311550D' +
             '079060C36F0E005E900B24');
      Result:=DTMRotated(Monastery, X, Y, MMX1, MMY1, MMX2, MMY2);
      FreeDTM(Monastery);
      If Not Result then
      begin
        DetDebug('Not At The Monastery');
        Result:=FindSymbol(x, y, 'Water');
        If Result Then DetDebug('Could Not Find DTM, but found water symbol.');
      End Else
      DetDebug('At monastery');
    End;

    It says: [Error] (15810:16): Variable Expected in script

    Could someone help me?


  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

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

    Default

    I think you forgot a begin / end somewhere.
    Hup Holland Hup!

  4. #4
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

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

    Default

    Quote Originally Posted by Shuttleu View Post
    if its a begin/end that he has forgotten thien it is a then it comes up with identifier expected not variable expected

    ~shut
    Oh, yeah, you're right.
    You get this with:

    SCAR Code:
    program New;

    const
      a = 3;
    begin
      Inc(a);
    end.
    Hup Holland Hup!

  6. #6
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    But I'm not Inc'ing anything.


  7. #7
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hehe, I solved his problem
    It was that he used Detdebug.
    He was changing a debug function to another name, and he didn't change the names to that new function^^
    There was nothing wrong with his function, just that he needed another name for that debug thing.

    PvH

  8. #8
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Repped


  9. #9
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by laurenssie0 View Post
    But I'm not Inc'ing anything.
    The point is that you can't change constant value.
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  10. #10
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Okay, but PvH fixed it for me.. Dumb errorz ^^


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Variable expected?
    By stampede10343 in forum OSR Help
    Replies: 2
    Last Post: 03-01-2008, 11:43 PM
  2. Variable Expected
    By NinjaTerrorist in forum OSR Help
    Replies: 20
    Last Post: 02-24-2007, 11:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •