SRL Archive - S.M.A.R.T.

error?


Zackeri

2012-10-25 15:12:27

I get this error when starting


[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(279:145): Invalid number of parameters at line 278
Compiling failed.

P1ng

2012-10-25 15:53:41

Please search around the forums, or even google your error and you might find your answer. you need to remove a ", -1" from SmartParams.simba, but if you search you will find this being answered many a time in alot more detail.

E: (because I'm nice).
- Open SmartParams.simba
- Go to line 290, it will look like this:
  Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', -1);
- Change it to look like this:
  Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
- Save SmartParams.simba and close it.
- Go back to running the script you were trying to run.

Zackeri

2012-10-25 21:31:07

Thanks so much, I will remember to search next time

slushpuppy

2012-10-26 10:08:04

Or you can add


{SMART8}

directly after

{SMART}

In your script

Zackeri

2012-10-26 14:17:08

So I changed it and I still get the same error…

lines 270-300:
begin
Result := IDs;
SetEIOSTarget('libsmartremote', ToStr(Result));
Writeln('Paired with SMART[' + ToStr(Result) + ']');
Exit;
end;
end;
end;

Params := GetSmartParams;
If (Length(Params) > 2) then
begin
Writeln('** Failed To Grab Smart Parameters **');
TerminateScript;
Exit;
end;

{$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
{$ELSE}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', -1);
{$ENDIF}

If (Result > 0) Then
begin
try
SetEIOSTarget('libsmartremote', ToStr(Result));
Writeln('Loading SMART: ' + Params[0] + Params[1]);
except
WriteLn('** Fatal Error: Pairing Clients; Terminating Script **');
TerminateScript;


[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(279:145): Invalid number of parameters at line 278
Compiling failed.

Zackeri

2012-10-26 15:14:31

I'm an idiot, orbiting it said add not remove….

0blivian

2012-10-26 21:26:09

[Error] C:\Simba\Includes\srl\srl\misc\smart.simba(55:17): Invalid number of parameters at line 54
Compiling failed.

Enslaved

2012-10-26 21:33:52

From: 0blivian
[Error] C:\Simba\Includes\srl\srl\misc\smart.simba(55:17): Invalid number of parameters at line 54
Compiling failed.


Common error, lookup using search