Results 1 to 4 of 4

Thread: Line 262: [Error] (12659:59): Variable Expected in script

  1. #1
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Line 262: [Error] (12659:59): Variable Expected in script

    why do i get this error?:
    if(FindDTMRotated(Bankers,e,f,MIX1,MIY1,MIX2,MIY2, 0,360,1,1)then

    help


  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    The last parameter needs to be a variable.
    It returns the angle found at as an extended.

    Ex would look like
    SCAR Code:
    var
      e, f, bankers : Integer;
      AngleFound : Extended;

    begin
      if FindDTMRotated(Bankers, e, f, MIX1, MIY1, MIX2, MIY2, 0, 360, 1, AngleFound) then
    end.

  3. #3
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Derek- View Post
    The last parameter needs to be a variable.
    It returns the angle found at as an extended.

    Ex would look like
    SCAR Code:
    var
      e, f, bankers : Integer;
      AngleFound : Extended;

    begin
      if FindDTMRotated(Bankers, e, f, MIX1, MIY1, MIX2, MIY2, 0, 360, 1, AngleFound) then
    end.
    woot, finaly someone posted. thx derek


  4. #4
    Join Date
    Oct 2006
    Location
    I'm also from Michigan!
    Posts
    563
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    uh just so you know, the startangle and endangle is in radians, not degrees.

    idk how itll work with the parameters you have

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 11-02-2008, 12:39 PM
  2. Replies: 2
    Last Post: 08-25-2008, 01:32 AM
  3. Replies: 10
    Last Post: 06-01-2008, 02:15 PM
  4. Line 0: [Error] (0:1): Variable Expected in script
    By cathering_ in forum OSR Help
    Replies: 15
    Last Post: 09-09-2007, 11:40 AM
  5. Line 1: [Error] Variable Expected in script
    By Fearlesssss in forum OSR Help
    Replies: 7
    Last Post: 05-26-2007, 10:12 PM

Posting Permissions

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