Results 1 to 8 of 8

Thread: Type Mismatch

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

    Default Type Mismatch

    I keep getting this error:
    Line 187: [Error] (18549:22): Type mismatch in script C:\Program Files\SCAR 3.20\Scripts\******.scar

    Line 187:

    SCAR Code:
    Begin
    SetupSRL;
    ActivateClient;
    SetupScript;
    LoginPlayer;
    Repeat
    Chopping;
    until (LoadsPerPlayer = true);
    end
    End.
    Last edited by Minkino; 06-12-2009 at 11:22 AM.

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

    Default

    It's most likely this line:
    until(LoadsPerPlayer);

    Unless LoadsPerPlayer is a boolean value, you can't use it directly in a repeat..until statement like that. You'd have to do a comparison with it, like this:
    until(LoadsPerPlayer > SomeNumber);

  3. #3
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    "most likely"? >.> haha yes, that's what it is.

  4. #4
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well there is no way to tell because we can not see the rest of the script. However, if that is the whole script, it is because of what senrath said.

  5. #5
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    Well there is no way to tell because we can not see the rest of the script. However, if that is the whole script, it is because of what senrath said.
    Uhm, isnt there an extra end ? :P

  6. #6
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Haha, yes there is, but he should be getting a period expected error lol.

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

    Default

    Quote Originally Posted by The Cnr Sport View Post
    Uhm, isnt there an extra end ? :P
    There wasn't when I first posted. He modified some things after I had posted, including adding in the extra end.

  8. #8
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh, I was wondering why I did catch that..

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
  •