Log in

View Full Version : Error at line 139



Mushmu
11-30-2010, 07:08 AM
This is my first time trying to run a script on simba maybe I setted something wrong but I think I did it right. So, I tried to run the test script and the runescape client wont open and I get this error:

[Error] C:\Simba\Includes\srl/srl/misc/smart.scar(140:204): Invalid number of parameters at line 139
Compiling failed.

And heres the ''line 139'' of the script named ''smart''



procedure SmartSetupEx(Server: integer; members, signed, superdetail: boolean);
var
prefix: string;
begin
{$IFDEF SIMBA}
prefix := ReadINI('World' + IntToStr(Server), 'Prefix', IncludePath + 'SRL/SRL/misc/worlds.ini');
{$ELSE}
prefix := ReadINI('World' + IntToStr(Server), 'Prefix', {$IFDEF SCAR325_UP} IncludesPath {$ELSE} AppPath + 'Includes\' {$ENDIF} + 'SRL\SRL\misc\worlds.ini');
{$ENDIF}
if(prefix = '')then
begin
writeln('Invalid world number or corrupted world list. Please review your settings');
TerminateScript;
end;
SmartSetup('http://'+prefix+'.runescape.com/', 'plugin.js?param=o0,a' + IntToStr((Integer(not(Signed)) + 1) * Integer(not((SuperDetail and Signed)))) + ',m' + IntToStr(Integer(Members)), 765, 503, 's');
//SmartSaveSettings([Server, Members, Signed, SuperDetail, SmartGetDC]);
end;

Mushmu
11-30-2010, 07:48 AM
solved: turns out the ", 's'" part wasn't needed?? idk how it got there as i don't open that file ever =/

Quote:
SmartSetup('http://'+prefix+'.runescape.com/', 'plugin.js?param=o0,a' + IntToStr((Integer(not(Signed)) + 1) * Integer(not((SuperDetail and Signed)))) + ',m' + IntToStr(Integer(Members)), 765, 503, 's');

I Tryed this method but it did not worked. I got java already installed, working on both Ie and firefox before runing the script but it still wont work. Any ideas?

Overtime
11-30-2010, 06:59 PM
You need to get the latest libsmart.dll plugin.

http://simbareflection.googlecode.com/svn/trunk/PLACE%20INSIDE%20PLUGIN%20FOLDER/

Download there and place in your plugins folder.