Results 1 to 4 of 4

Thread: Sin(); issues - please help

  1. #1
    Join Date
    Dec 2006
    Location
    Canada, BC
    Posts
    728
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Exclamation Sin(); issues - please help

    SCAR Code:
    var
      theta : Extended;
      x, y : Integer;
    begin
      theta := sin(GetMinimapAngleDeg);//[Error] (28267:1): Type mismatch in script
      x := NPC.MS.x + (theta * (5 + Random(2)));
      y := NPC.MS.y + (theta * (5 + Random(2)));
    end;

    I keep getting the error: [Error] (28267:1): Type mismatch in script

    I dont understand what im doing wrong =/ GetMinimapAngleDeg(); returns extended.. D=
    Lance. Da. Pants.

  2. #2
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Well, just that line compiles fine for me. Your type mismatch error comes from your next two lines. You're trying to assign an Extended value to an Integer.

  3. #3
    Join Date
    Dec 2006
    Location
    Canada, BC
    Posts
    728
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    -facepalm- damn im an idiot lol thanks
    Lance. Da. Pants.

  4. #4
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

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
  •