Log in

View Full Version : What does this error mean?



John
01-09-2012, 05:21 AM
And how do i fix it?


Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Fixed

Now this :P

begin
//if WithdrawItem(Marrentil, 'dtm', 1, 'lean', []) then
//if WithdrawItem(Marrentil, 'dtm', 1, 'lean', []) then
//WithdrawItem(DragonBones, 'dtm', 25, 'ragon', []) then
if Withdraw(8, 0, 1) then
Wait (350 + random(350))
if Withdraw(8, 0, 1) then
Wait (350 + random(350))
if Withdraw(9, 0, 25) then
Wait (350 + random(350))
if BankScreen then
Wait (350 + random(350))
CloseBank;
Wait(2000 + Random(545))
And i get this error for this peice of coding:

Compiling failed.
[Error] (377:7): Semicolon (';') expected at line 376
Compiling failed.
[Error] (377:7): Semicolon (';') expected at line 376
Compiling failed.
Wait figured it by myself

imaloser
01-09-2012, 05:40 AM
Incorrect parameters.

I'd suggest going to the tutorial section to aid you (:

Flight
01-09-2012, 05:43 AM
The first line means one of your Y coordinates was used off Smart's canvas (out of bounds, so to speak). Like the error says, it was corrected and changed to the nearest Y value that's still in-bounds. This is a good thing.

The second line, I have no idea. That's specifically something to do with the script you're using.

John
01-09-2012, 06:34 AM
okay thanks flight the second line isn't meant to be there :p
Got another error -_-
Fixed it.