Page 3 of 3 FirstFirst 123
Results 51 to 52 of 52

Thread: C.W.I [Console Walking Include]

  1. #51
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I tried using this again with the new simba 0.99 but it comes up with the error :

    [Error] C:\Simba\Includes\CWI/CWI.simba(26:45): Invalid number of parameters at line 25

    Line 25: SendKeys(CONSOLE_KEY, RandomRange(10, 50));

    Do you know why this is happening?
    Scripting powerlevel = [||||||||]

  2. #52
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by ssshhhaaa View Post
    I tried using this again with the new simba 0.99 but it comes up with the error :

    [Error] C:\Simba\Includes\CWI/CWI.simba(26:45): Invalid number of parameters at line 25

    Line 25: SendKeys(CONSOLE_KEY, RandomRange(10, 50));

    Do you know why this is happening?
    This was part of the 0.99 update, sendkeys was given a third param. A simply way to fix the error would be to replace the sendkeys line at line 25ish and 141ish with
    Simba Code:
    {$IFDEF SIMBAMAJOR980}
        SendKeys(CONSOLE_KEY, RandomRange(10, 50));
        {$ELSE}
        SendKeys(CONSOLE_KEY, RandomRange(10, 50), RandomRange(10, 50));
        {$ENDIF}
    and the one at around line 52 with
    Simba Code:
    {$IFDEF SIMBAMAJOR980}
        SendKeys('getcamerapos', RandomRange(10, 50));
        {$ELSE}
        SendKeys('getcamerapos', RandomRange(10, 50), RandomRange(10, 50));
        {$ENDIF}

    Credits to Demise Scythe with the 'fix' she posted here about the send keys issue http://villavu.com/forum/showthread....22#post1057122

    ~Caotom
    Last edited by Caotom; 07-27-2012 at 01:46 PM.

Page 3 of 3 FirstFirst 123

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
  •