SRL Archive - Help

Help! Invalid number of parameters


Black36

2012-07-27 21:32:38

Well, after the latest update of simba and all of its plugins, I've tried starting any downloaded script and they always fail at:

[Error] G:\Simba\Includes\SRL/SRL/misc/smart.simba(53:19): Invalid number of parameters at line 52

[Error] G:\Simba\Includes\SRL\SRL\misc\smart.simba(56:19): Invalid number of parameters at line 55

I dont get this since Im able to Run MSI properly for botting, Maybe its because the scripts are not updated right?

Justin

2012-07-27 21:48:05

If it is a custom script; read this: http://villavu.com/forum/showthread.php?t=84334&highlight=updates

If it is MSI, you will need to wait for a MSI Dev to push an update.

Black36

2012-07-27 21:52:06

Thank you Justin, I'll try it out since its Custom script field, MSI Works Properly

Black36

2012-07-28 10:24:47

It looks as if I had downloaded everything and my simba is up to date with the latest SMART 7.2 Version, But Im still getting the same errors. I dont get it.

Footy

2012-07-28 11:10:41

post the script you are using

Black36

2012-07-28 11:22:05

Daemonheim Superheater v0.45
Teg Superheat PRO
Superheater v0.1

All of those 3 scripts give me the same error

blinkblink

2012-07-28 15:02:02

From: Black36
Daemonheim Superheater v0.45
Teg Superheat PRO
Superheater v0.1

All of those 3 scripts give me the same error


The link that you were given..tells you what you need to change on those scripts.. so they work with the current simba
*hint: backwards compatibility -part

Black36

2012-07-29 10:31:24

So I basically Have to add the backwards compatibility part to every script im using if it does not have it? (Am I supposed to add that at the beggining right?)

Sorry for being so unconcious of what I'am doing and bothering you out. Just that I need to get more Familiarized with scripting!

riwu

2012-07-29 10:41:05

Replace
  Smart_Server := 1;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
with
 SRL_SixHourFix := True;
Smart_FixSpeed := True;

Thats it. ({$I SRL/SRL/Misc/PaintSmart.Simba} to {$I SRL/SRL/Misc/SmartGraphics.Simba} too if the script has paint)

You dont really have to make it backward compatible as its for scripters who want their scripts to support older versions of simba (kinna pointless since everyone should have the latest simba)

Black36

2012-07-29 11:10:50


That's the Order! I've Changed them as you told me but I keep getting the same problem!

Brandon

2012-07-29 11:29:58

You didn't read the tutorial and it's pretty clear seeing as you're still using smart.simba

Black36

2012-07-29 11:35:12

Oh… Well Honestly Im quite sleppy. I'll change that

Black36

2012-07-29 11:38:13

Everything was in this post right? http://villavu.com/forum/showthread.php?t=84334&highlight=updates

Cause I've placed the new smart in my plugins and well
My problem is that I dont have the list of links I need to make everything. Im very confused with this and I feel like a real bother. But thanks for the time explaining.

Brandon

2012-07-29 11:41:24

From: Black36
Everything was in this post right? http://villavu.com/forum/showthread.php?t=84334&highlight=updates

Cause I've placed the new smart in my plugins and well
My problem is that I dont have the list of links I need to make everything. Im very confused with this and I feel like a real bother. But thanks for the time explaining.



Change {$I SRL/SRL/Misc/Smart.Simba} to {$Define Smart}

Black36

2012-07-29 11:49:33

Ok now the script is starting. No Errors Have Shown up.

Waiting for SMART to open the Java window

SRL Compiled in 15 secs
"Setting up script"

Black36

2012-07-29 11:59:06

just a little problem with the login, script problem anyways

Everything is working properly. Thank you very much!