AliveDrive
2014-02-14 18:02:21
So I am working on my first script, and it's not easy.
But I've decided if I can solve one problem at a time, I may eventually get a working copy out there.
The issue I am currently experiencing is that the script doesn't seem to know when it has a full inventory or not.
The code I am using.
Example of how I am calling it.
Any suggestions?
Currently it will always try to deposit inventory.
But I've decided if I can solve one problem at a time, I may eventually get a working copy out there.
The issue I am currently experiencing is that the script doesn't seem to know when it has a full inventory or not.
The code I am using.
//=========================================\\
// \\
// INV FULL CHECK \\
// \\
//=========================================\\
function InvFull() : Boolean;
begin
if not isLoggedIn() then
exit;
if (tabBackpack.isFull()) then
begin
writeln('Inv Full!');
result := true;
end;
end;Example of how I am calling it.
if (GPS = 'Bank') and InvFull() thenAny suggestions?
Currently it will always try to deposit inventory.