Originally Posted by
ssshhhaaa
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