Results 1 to 6 of 6

Thread: Cant Compile

  1. #1
    Join Date
    Jun 2007
    Posts
    350
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Cant Compile

    Ok well I've been trying to get this simple autotalker to work for an hour or so now and its really frustrating me. I'm trying to make it like 100% anti-ban as my main is in deep kaka atm. Well here is what I have and I obviously messed with it a little bit so you can't report me if you find the exact same words being said.


    SCAR Code:
    function TypeHuman(Text:String;MillisecondPerLetter:Integer):string;
    var
      i: Integer;
    begin
      i:= 1;
      repeat
        Wait(Random(MillisecondPerLetter) + 45+random(45));
        SendKeys(Copy(Text, i, 1));
        i:=i+1;
      until(i>Length(Text));
    end;

    procedure AutoTalk;
    begin
      case random (1) of
       0: typehuman(inttostr(blahg) +' '+inttostr(blah0)+' '+inttostr(blah1)+' by'+inttostr(blah4)+' '+inttostr(blah3)+ 'blah '+inttostr(join)+ ' ******** cc' +chr(13), 62 +random(80));
      end;
    end;

    Btw the typehuman function is NOT mine, I forget exactly where I got it from but it was around these forums somewhere and I take NO CREDIT whatsoever for the function.

    It gives me an error that says this : Line 95: [Error] (16314:187): Type mismatch in script

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

    Default

    Check what types the "blah"s are cast as. Because it worked fine when I replaced them with integers.

  3. #3
    Join Date
    Jun 2007
    Posts
    350
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Like this
    SCAR Code:
    procedure money;
    begin
    Case Random (5) of
    0: typehuman('money',  62 +random(90));
    1: typehuman('money',  62 +random(90));
    2: typehuman('cash',  62 +random(90));
    3: typehuman('monye',  62 +random(90));
    4: typehuman('cash',  62 +random(90));
    end;
    end;

    yes I dont use standards for my own personal scripts, its a bad habit >.< sry

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

    Default

    Can you post the entire script? Cause that snippet works fine for me as well.

  5. #5
    Join Date
    Jun 2007
    Posts
    350
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    In all honesty if i post the entire script I risk my main being banned

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

    Default

    Just PM it to me, then. I won't tell anyone about its contents.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. It won't compile!
    By Xemnas in forum OSR Help
    Replies: 7
    Last Post: 01-07-2008, 02:27 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
  •