Results 1 to 6 of 6

Thread: ERROR type mismatch

  1. #1
    Join Date
    Jul 2008
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ERROR type mismatch

    I'm trying to run Varrock Yew Chopper by Omgwoot and it comes up with

    "Line 914 error: Type mismatch".

    the part that its from is the game tab thing that opens when the script is run

    Settings := [Brightness, Volume, SFX, Area];
    Names := ['Brightness', 'Volume', 'SFX', 'Area'];
    for II := 0 to 3 do
    begin
    K := 5 - Integer(II = 0); {line 914}
    if (not(InRange(Settings[II], 0, K))) then
    begin
    srl_Warn('SetBar', 'Setting: ' + IntToStr(Settings[II]) + ' is not valid for Bar: ' + Names[II] + '.', warn_AllVersions);
    Settings[II] := 0;
    end;

    normally i would post something like this on the thread instead of starting a new one but because this has also happened in other scripts that ive tried to play, is there anyone out there who can explain to me what type mismatch is and how i can fix it.

  2. #2
    Join Date
    Oct 2008
    Location
    behind you!
    Posts
    1,688
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    Next time Post on the thread where you got it... if the thread is old then its outdated...
    Hi

  3. #3
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    is this attempting to convert bool to int?
    ~ Metagen

  4. #4
    Join Date
    Jul 2008
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sorry but i have no idea wat that means metagen.

  5. #5
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    What version of SCAR are you using, shaman? That part isn't an issue for most people.
    :-)

  6. #6
    Join Date
    Jul 2008
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i think the version i run is 3.15.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Type Mismatch Error, Help!
    By Ultra in forum OSR Help
    Replies: 4
    Last Post: 01-21-2009, 10:24 PM
  2. Type Mismatch Error?
    By crossback7 in forum OSR Help
    Replies: 2
    Last Post: 06-23-2007, 05:28 PM
  3. Type mismatch error...
    By Hobbit in forum OSR Help
    Replies: 8
    Last Post: 02-13-2007, 04:45 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
  •