SRL Archive - OSR Help

Invalid number of parameters at line 292


BUITEU

2013-07-01 18:35:01

I followed official guides and i've looked for help in so many threads but i still don't know how to fix this. Please help!

Sjoe

2013-07-01 18:48:58

Could u post the full error you're getting?

I'm just gonna take a guess here, but change this on top of the script: {$Define SMART} to {$Define SMART8} or vice versa.

BUITEU

2013-07-02 06:47:57

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(293:131): Invalid number of parameters at line 292

And no, it's already {$Define SMART8}.

okokokok

2013-07-02 06:51:06

Could you post the script, since we don't know what is written on line 292…

Since I won't be able to reply soon,

An error with "Invalid number of parameters" usually something is wrong with the parameters between these things ( ) (sorry don't know how to call them xd)

For example:



//Correct
If FindDTM(DTMName,x,y,MSX1,MSY1,MSX2,MSY2) then
.....

//Incorrect
If FindDTM(DTMName,MSX1,MSY1,MSX2,MSY2) then
....
//or
If FindDTM(x,y,DTMName,MSX1,MSY1,MSX2,MSY2) then
...

So just check this by removing everything between the ( ) and remove these two ( ) aswell. Then start with ( and simba should say which parameters should be used.

Sjoe

2013-07-02 07:17:53

From: BUITEU
[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(293:131): Invalid number of parameters at line 292

And no, it's already {$Define SMART8}.


Yeah try the other way around (which means vice versa)