Results 1 to 3 of 3

Thread: Invalid number of parameters.

  1. #1
    Join Date
    Jun 2013
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default Invalid number of parameters.

    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?

  2. #2
    Join Date
    Jun 2013
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

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

  3. #3
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    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]....[/simba]"
    Simba Code:
    Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), 'http://oldschool' + World + '.runescape.com/', 'j1', 765, 503, '', '', '', '');

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •