Results 1 to 8 of 8

Thread: Yet another Runtime Error!

  1. #1
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Yet another Runtime Error!

    SCAR Code:
    [Runtime Error] : Exception: Type Mismatch in line 322 in script C:\Documents and Settings\Kiddo\Desktop\SCAR 3.15\Scripts\Soul Wars.scar

    Here's line 322 and the surrounding lines:

    SCAR Code:
    End else
        X := Lowercase(Team);
      Repeat
        If (OutOfGame)and(Lowercase(Team) = 'random')Then
          Begin
            Case Random(2) Of

    Any ideas? :/.

    ~Sandstorm

  2. #2
    Join Date
    Sep 2006
    Location
    include srl/srl.scar ( aussie)
    Posts
    2,875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    always put spaces it your code like between () and bolded statements.

    try this..

    if (OutOfGame) and Lowercase(Team) = 'random' then

  3. #3
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I tried that, it gave me a Type Mismatch. I solved it by doing this:

    SCAR Code:
    H := Lowercase(Team) = 'random';
        If (OutOfGame) and H Then

    And it threw me this:

    SCAR Code:
    [Runtime Error] : Exception: Type Mismatch in line 324 in script C:\Documents and Settings\Kiddo\Desktop\SCAR 3.15\Scripts\Soul Wars.scar

    Grr. I hate runtime errors xD.

    ~Sandstorm

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

    Default

    it means that something is a string, boolean, integer, or extended and it's being used as something else.. you never changed it from integer to string or string to boolean or w/e

  5. #5
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Is H a boolean?

  6. #6
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, H is a boolean. Otherwise the script wouldn't compile at all.

    Sorry 99_, misunderstood you.

    ~Sandstorm

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

    Default

    Could you post more of the script?

    It might not be that line.

    Is Team a string?
    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

  8. #8
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Of course. I figured out (well, I didn't figure out what it was, but I fixed it!), so it's all good.

    ~Sandstorm

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Runtime Error] : Exception: buffer error
    By GasMan in forum OSR Help
    Replies: 11
    Last Post: 05-13-2007, 02:07 PM
  2. Runtime Error
    By CamHart in forum OSR Help
    Replies: 2
    Last Post: 11-23-2006, 05:21 AM
  3. Runtime error
    By sk8ter in forum OSR Help
    Replies: 3
    Last Post: 10-30-2006, 01:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •