SRL Archive - OSR Help

Type mismatch at line 622 of Core\Bank.simba


zeeky111

2011-02-09 19:16:58

I'm getting this error:
[Error] C:\Simba\Includes\Reflection\./Core/Bank.simba(623:39): Type mismatch at line 622

I didn't get this error up until just recently.. The only thing I added between the last compilation and the most recent (which returned the error) was:

procedure DepositAllButNats;
begin
R_OpenBankBooth(BankID);
Wait(500+random(500));
begin
if R_PinScreen then
InPin(Players[CurrentPlayer].Pin);
Wait(1000+random(500));
if R_BankScreen then
R_DepositAllButID(561);
Wait(1000+random(random(500));
end;
end;

What's with this? :[.

KingKong

2011-02-09 19:50:10

It would be helpful to know what line 622 is. But from the code I think you're using the wrong parameters for opening the bank, but i can't be sure about this since i don't what type bankID is.

zeeky111

2011-02-09 20:22:14

Ah. Sorry. Can't believe I forgot that.
Lines 617 to 625 =
begin
R_Debug('Tried to withdraw wrong item', 'R_WithdrawItemIDEx');
Exit;
end;

//failsafe <-- line 622
while (R_CountItemID(Item.ID) = InvCou) do
begin
if (TimeFromMark(CountTime) > 8000) then

Also, BankID is a global string constant in my script ('geb').

Need anything else?

EDIT: In the original ./core/bank.simba, line 622 is actually
//failsafe