SRL Archive - OSR Help

Invalid number of parameters?


Pking Terms

2013-04-17 11:48:52

Getting this constant error at the moment but I'm not sure what I've done wrong

[Error] C:\Simba\Scripts\RyanRangeGuild.simba(175:28): Invalid number of parameters at line 174
Compiling failed.

Sk1nyNerd

2013-04-17 12:33:45

make sure you have a matching parenthesis pairs, example wait(randomrange(50,3000));
it would be helpful if you posted the code where the error occurs with the code tags

Pking Terms

2013-04-17 13:17:38

Thanks for the reply,

  if _findallrandoms(true) then
begin
RandomSolve;
exit;
end;
runcombat;
wait(100);
inc(n);
until n >= m;
wait(randomrange(0, 99));
end;

Sk1nyNerd

2013-04-17 14:48:59

try putting parenthesis around the if statement. idk if the underscore is sqrewing it up.if u have a begin for the last end and a repeat for the until(n=m) ealrier in the code im not sure :P sorry. what does exit do? and does inc (n) just increase n by 1? im newish lol

Rich

2013-04-17 15:40:44

If this is for OSR, then the problem lies in that
if _FindAllRandoms(True) then
should be
if _FindAllRandoms(True, []) then
However, you might as well use FindNormalRandoms as that does exactly the same as what you're asking it to do. Hopefully that'll sort it out for you.