Results 1 to 6 of 6

Thread: Type mismatch error.

  1. #1
    Join Date
    Mar 2008
    Posts
    54
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Type mismatch error.

    Ok, so I can't solve this error, I've asked on SRL java chat, no-one could help.

    my error is this.

    SCAR Code:
    Line 61: [Error] (12704:5): Type mismatch in script
     function FindTheTabs: Boolean;
    var CErr:integer;
    begin
      if TabExists(4) then
      begin
        Result := true;
      end else
      begin
        CErr('Inventory Tab cant be found.');
        Result := false;
        LogOut;
        SwitchNow;
      end;
    end;
    If I see you autoing with level 3 account and default clothes I WILL report you. Add this to your sig it'll make you cool .
    Auto properly

    http://a.imagehost.org/0181/trueee.png
    http://www.stats.srl-forums.com/sigs/4818.png

  2. #2
    Join Date
    Jun 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    add a ''// this line''

  3. #3
    Join Date
    Mar 2008
    Posts
    54
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks a lot :P Closed.
    If I see you autoing with level 3 account and default clothes I WILL report you. Add this to your sig it'll make you cool .
    Auto properly

    http://a.imagehost.org/0181/trueee.png
    http://www.stats.srl-forums.com/sigs/4818.png

  4. #4
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    the var "CErr" needs to be a string.. not an integer.

  5. #5
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    CErr('Inventory Tab cant be found.');
    CErr is a variable, not a function.
    Declare CErr as string and use:
    SCAR Code:
    CErr := 'Inventory Tab cant be found.';


  6. #6
    Join Date
    May 2007
    Location
    Location:= USA
    Posts
    238
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function FindTheTabs: Boolean;
    var
      CErr : String;
    begin
      if TabExists(4) then
      begin
        Result := true;
      end else
      begin
        CErr:= 'Inventory Tab cant be found.');
        Writeln(CErr);
        Result := false;
        LogOut;
        SwitchNow;
      end;
    end;

    Should look something like this.
    Please, I need money, and you don't lose anything, except get money! Join BUX.TO with http://bux.to/?r=twistedvip50

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ERROR type mismatch
    By shaman in forum OSR Help
    Replies: 5
    Last Post: 12-17-2008, 01:02 AM
  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
  •