Results 1 to 7 of 7

Thread: Invalid parameters

  1. #1
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Invalid parameters

    I know what's the error, but i don't know how to set up the function:
    SCAR Code:
    if InStrArrEx('lol',ChatRoom[i]) then

    Can someone explain to me how it's supposed to be set up?
    ~Des

  2. #2
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    im assuming this is for an auto responder why not do something like
    Code:
    typesend('lol');

  3. #3
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Because this is supposed to search for the text, not type it.

  4. #4
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    oh ok

    Code:
    FindChatBoxText({txt}, 8, 0); // 8 = line i think and 0 = text column i think
    change to what is needed

  5. #5
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    no..i have my responder which gets the whole chat box , but i need it to find the word 'lol' in the lines. And it won't. That's not suitable.

  6. #6
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Function InStrArrEx(S: String; StrArr: TStringArray; Var Where: Integer): Boolean;

    InStrArrayEx('lol', ChatRoom, WhereAmI)

    WhereAmI is an integer variable you have to make yourself.
    var WhereAmI: integer;

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  7. #7
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thank you, exactly what i needed.

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
  •