SRL Archive - OSR Help

Invalid number of parameters.


Success

2013-09-11 12:58:37

So I updated everything to work with reflection for ex: CustomRandoms, MiniReflection, SMART 8.2, and now when I try to compile any script that worked before I get this error:
"[Error] C:\Simba\Includes\SRL-OSR/SRL/misc/SmartParams.Simba(229:203): Invalid number of parameters at line 228. Compiling failed."
Anybody know why or a fix?

Success

2013-09-12 00:14:00

Well I found the fix for this:
Fix: Replace SmartParams SmartSpawnClient's line 240 with belows, save it and try again:
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), 'http://oldschool' + World + '.runescape.com/', 'j1', 765, 503, '', '', '', '');

Flight

2013-09-12 02:42:31

Nicely done, you solved the problem yourself and didn't require the help after all. Not to discourage asking for help (because this is more than welcome here) but it definitely pays to spend a little extra time on a problem and try all possible solutions before you ask for help elsewhere. It's also nice if you solve something on your own so you can wrap your head around why it went wrong and how to fix it in the future.

Again, I don't mean to nag just handing out a piece of advice. Oh yeah one other thing; if you're posting code related to Simba you can use Simba tags instead, like so:
"{simba]…."

Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), 'http://oldschool' + World + '.runescape.com/', 'j1', 765, 503, '', '', '', '');