Results 1 to 18 of 18

Thread: every script

  1. #1
    Join Date
    Nov 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default every script

    every script i try to use is not working, i always get this
    [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(274:145): Invalid number of parameters at line 273
    Compiling failed.

    could some one please help me?

  2. #2
    Join Date
    Jan 2012
    Location
    In A Farm
    Posts
    3,301
    Mentioned
    30 Post(s)
    Quoted
    444 Post(s)

    Default

    This is like the easiest fix ever. All you have to do is go to the smartparams tab and delete -1 from one of the longest lines in there and then save it.

  3. #3
    Join Date
    Nov 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Silentcore View Post
    This is like the easiest fix ever. All you have to do is go to the smartparams tab and delete -1 from one of the longest lines in there and then save it.
    i dont know how to do this :s. im a noob i know.

  4. #4
    Join Date
    Oct 2012
    Location
    Singapore
    Posts
    163
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    There should be a tut for this fix... Sometimes I get this error too. :L
    Perfection is not attainable, but if we chase perfection we can catch excellence.
    Vince Lombardi
    http://villavu.com/forum/showthread....t=newbie+guide
    Read through and followed all steps 3 times. Still doesn't get Simba scripting or any form of scripting for that matter. *retard*

  5. #5
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  6. #6
    Join Date
    Nov 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Swifte View Post
    There should be a tut for this fix... Sometimes I get this error too. :L
    thanks i fixed it though im getting this now.
    [Hint] C:\Simba\Includes\SRL/SRL/core/globals.simba(55:3): Variable 'WORLDSWITCHERENABLED' never used at line 54
    Compiled successfully in 640 ms.
    SRL Compiled in 15 msec

  7. #7
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    He is saying, Open up Simba,

    Use the script you used before that got you this error, and start the script, Simba will open a new tab with the error:

    [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(274:145): Invalid number of parameters at line 273
    Compiling failed.
    On this tab it will also most likely have highlighted this tab called(Smart Params):
    Simba Code:
    {$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}

    From reading what was said above even though i am a noob myself, remove:
    -1
    from the second line.

  8. #8
    Join Date
    Nov 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by tasmania View Post
    He is saying, Open up Simba,

    Use the script you used before that got you this error, and start the script, Simba will open a new tab with the error:



    On this tab it will also most likely have highlighted this tab called(Smart Params):
    Simba Code:
    {$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}

    From reading what was said above even though i am a noob myself, remove:
    from the second line.
    yea i found that out, getting different error now

  9. #9
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Bl!ss View Post
    thanks i fixed it though im getting this now.
    [Hint] C:\Simba\Includes\SRL/SRL/core/globals.simba(55:3): Variable 'WORLDSWITCHERENABLED' never used at line 54
    Compiled successfully in 640 ms.
    SRL Compiled in 15 msec
    That's not an error.

    It's a hint.

    You're good to go now.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  10. #10
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    Lol,

    This is the error i cant find a fix for yet;

    [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(284:131): Invalid number of parameters at line 283
    Compiling failed.
    My line of 283:
    Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
    Any ideas?

  11. #11
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by tasmania View Post
    Lol,

    This is the error i cant find a fix for yet;



    My line of 283:


    Any ideas?
    You have SMART 7.2 instead of 8. Either upgrade to 8, or add back that -1. Or maybe your script DEFINE SMART8.

  12. #12
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    add another comma and empty quotes beforw the closing brackets

  13. #13
    Join Date
    Nov 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    That's not an error.

    It's a hint.

    You're good to go now.
    smart does not open i just get a cmd that opens

  14. #14
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    Fixed,

    Used this thread: http://villavu.com/forum/showthread.php?t=84334

    Changed the {$DEFINE SMART8} to {$DEFINE SMART}

    Added to the bottom:
    {$IFDEF SMART}
    {$IFDEF SIMBAMAJOR980}
    Smart_Server := 72;
    Smart_Members := True;
    Smart_Signed := True;
    Smart_SuperDetail := False;
    {$ELSE}
    SRL_SixHourFix := True;
    Smart_FixSpeed := True;
    {$ENDIF}
    {$ENDIF}

    Between Begin; and SetupSRL;

    Also added back the ,-1

  15. #15
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    @ Bliss,

    cmd as in a command prompt window? This window always comes up in simba, unless you disable/hide it. How new are you to simba? Have you updated everything including extensions?

  16. #16
    Join Date
    Nov 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by tasmania View Post
    @ Bliss,

    cmd as in a command prompt window? This window always comes up in simba, unless you disable/hide it. How new are you to simba? Have you updated everything including extensions?
    i was using simba like a year ago and it was working fine then i quit came back, and everything is updated and year the command prompt window comes up but smart does not.

  17. #17
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by Bl!ss View Post
    i was using simba like a year ago and it was working fine then i quit came back, and everything is updated and year the command prompt window comes up but smart does not.
    Perhaps to do with your java path?

  18. #18
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    So are you sure you have updated and enabled all extensions? I know this might be way off but not updating everything i had this error where i couldnt get the rs window to popup. I ended up ininstalling, running ccleaner, reinstaliling neest update, re-enabled all extensions, reupdeated all extensions then i was good to go.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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