SRL Archive - News and General

wtf is wrong with smart params?


[F]aceless

2012-09-21 12:52:01

I was running Kyle's Esswraith Extractor for more than 2 weeks and its working perfectly. yesterday, it gave me an error when I tried to run it:

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(286:134): Invalid number of parameters at line 285
Compiling failed
.

I tried to run it today again and I still have the same error. Then I checked the script thread and saw that other ppl are getting the same error.

Later, I tried to run other scripts and still gives the error so I assume it is a SmartParams error.

Also I have already deleted the '-1' in line 285 in SmartParams.simba

My line 285 is this:

Result:= SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', ''); 


So when I try to run any script, this line gets highlighted and in the debug box appears this:

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(286:134): Invalid number of parameters at line 285
Compiling failed
.


A lot of ppl are getting this error. I hope someone can take a look to this and help us continue scripting.

Thanks and may :norris: be with you.

Ashaman88

2012-09-21 13:09:43

If you are using smart 8.0 replace it with this

Result:= SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');

Jos3ph

2012-09-21 13:16:54

http://villavu.com/forum/showthread.php?t=89825

I get flammed for asking questions but I am sure you will get a drift with what Ash said, its fixed my probelms.

Replace the current one with the one with Ash I think its located around line 278

[F]aceless

2012-09-21 14:40:56

worked thanks ash!

___

2012-09-21 15:04:59

How do you change from SMART 7-8? I have it but it just says 7.2 on my screen

mormonman

2012-09-21 15:13:28

The only problem you people should be having is if you are using a different SMART then is released with SRL, thus it is not SRL/SMARTs fault, but your own. If you don't know how to fix simple compiling errors, then don't use things that aren't in the PUBLIC repo, or you're going to have problems.

newb cheater

2012-09-22 04:12:12

From: ___
How do you change from SMART 7-8? I have it but it just says 7.2 on my screen


I think you may have attempted to change to 8, but in essence you are still using v 7.2