Results 1 to 3 of 3

Thread: [Compiling Error] "Type mismatch"; WTF.

  1. #1
    Join Date
    Nov 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Unhappy [Compiling Error] "Type mismatch"; WTF.

    I've tried everything; I've installed all the correct plugins and moved them to the plugins folder manually, and I've even downloaded the prision pete.dll file and placed it there. However, I keep getting this error whenever I try to compile a script, and it's really pissing me off.

    Error:
    Code:
    Type                             Line         File                     Message
    Compiling error                722         mapwalk.scar        Type mismatch
    Line 722: where it's telling me the error is..
    Code:
    722   Radius := Max((x2-x1)/2, (y2-y1)/2);
    What could the error be?

  2. #2
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Max wants integer values, you're giving it floats!

    Try:
    Simba Code:
    Radius := Max((x2-x1) div 2, (y2-y1) div 2);

    E: Since its in SRL, I would advise updating, as it has probably been fixed.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  3. #3
    Join Date
    Nov 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    Max wants integer values, you're giving it floats!

    Try:
    Simba Code:
    Radius := Max((x2-x1) div 2, (y2-y1) div 2);

    E: Since its in SRL, I would advise updating, as it has probably been fixed.
    Thanks, that worked. I fixed that however afterwards when I compiled, I got this error:

    0.
    Last edited by RuneBots; 11-23-2011 at 03:31 AM.

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
  •