SRL Archive - Reflection Help

R_ItemsExistInBankEx help


austin2162

2011-05-16 17:50:05

i cant get this to work.
could some one show an example?

footballjds

2011-05-16 20:11:20

{*******************************************************************************
function R_ItemsExistInBankEx(TheVarArr: TVariantArray; var ItemArray: TBankItemArray): Boolean;
By: mormonman
Description: Returns true if one of the items exists in bank.
It also returns the array of Items.
*******************************************************************************}
function R_ItemsExistInBankEx(TheVarArr: TVariantArray; var ItemArray: TBankItemArray): Boolean; [/SIMBA

Usage:

[SIMBA]procedure IsItThereHmm;
var
ItemsX: TBankItemArray;
begin
Writeln(R_ItemsExistInBankEx([527], ItemsX);
Writeln(ItemsX);
end;

If you are using it correctly it's possible that the banking with reflection is still bugged. leme know.