Results 1 to 2 of 2

Thread: Type Mismatch

  1. #1
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Type Mismatch

    I know what type mismatch means but i think i coded right?

    this is my error:

    SCAR Code:
    Line 190: [Error] (22214:22): Type mismatch in script C:\Program Files (x86)\SCAR 3.15\Scripts\

    this is line 190:
    SCAR Code:
    if GetNPCsBy('spot') then

    if you need anymore information then just tell me. (This is my first time using Reflection btw)

    I've got the latest Reflection. Got it from Widget's installer today..

    EDIT: I also have another Reflection Issue:
    SCAR Code:
    [Runtime Error] : Type Mismatch in line 271 in script C:\Program Files (x86)\SCAR 3.15\includes\SRL\SRL\Reflection\Characters.Scar

    Line 271:
    SCAR Code:
    if TileOnMSEx(Result[L].Tile, Round(Result[L].Height / 2.5)) then

  2. #2
    Join Date
    Jan 2009
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ive never used Reflection, but im pretty sure i know what it is.
    So you did:
    SCAR Code:
    if GetNPCsBy('spot') then
    And:
    SCAR Code:
    if TileOnMSEx(Result[L].Tile, Round(Result[L].Height / 2.5)) then

    GetNPCSpot() and TileOnMsEX() are probably procedures, not function, and if they are functions, they are not boolean functions.

    If thats not it, then there is a wrong type in the parameters.

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
  •