Results 1 to 3 of 3

Thread: Why doesn't this work... :s

  1. #1
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default Why doesn't this work... :s

    Hi, its me (again) I'm sorry for wasteing your time (again)...

    I made a little test script (without any utility at all, except if you love writelns...

    But I get this error while trying to run it...

    SCAR Code:
    Failed when compiling
    Line 12: [Error] (12:13): Type mismatch in script

    Well i looked at JAD's tut on common errors and it wasn't there :S.
    I looked at a tutorial (in beginner section) on if-then,while-do,for cases.

    This script was only to test IsFKeyDown and While Do

    Here it is :
    SCAR Code:
    program New;

    procedure lol;
    begin
      Writeln('Wait...');
      Wait(1000);
    end;

    procedure LolEnd;
    begin
      Wait(100);
      While (lol) do //line 12
      begin
        If IsFKeyDown(2) then
        begin
          Writeln('ending... ');
          Wait(1000);
          TerminateScript;
        end;
      end;
    end;

    begin
    repeat
      lol
      LolEnd;
    until(false);
    end.

    Any help please ?

  2. #2
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    while BOOLEAN do

    A boolean is just true or false, not a procedure.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  3. #3
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Oooooooooookaayy ty ty ty ty

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how come this does not work?
    By takeout in forum OSR Help
    Replies: 3
    Last Post: 09-14-2007, 03:44 PM
  2. how come this does not work?
    By takeout in forum OSR Help
    Replies: 2
    Last Post: 09-11-2007, 09:19 PM
  3. Been Trying To Get This To Work : /
    By Speci in forum OSR Help
    Replies: 15
    Last Post: 07-21-2007, 12:17 PM
  4. how does rc work
    By del_signo in forum OSR Help
    Replies: 4
    Last Post: 05-10-2007, 02:47 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
  •