Hello,
I have implemented opening file into my script ,so I can bot multiple accounts.
The script try to open file ,but if it fails ,then wait until it can be opened and then change world, so rs will not log me out, when 2 accs are in lobby.
But I have problem with this system.
because
when I was just trying on one account, it goes through it 2-3 times and then stops with this:
Simba Code:OpenFile - Exception. Could not open file C:\file.txt;
My code for opening file is:
function ableToLogOut:boolean;
begin
fileNR:=OpenFile('C:\file.txt',false);
if not(FileNR=-1) then Result:=true;
end;
and I have this function in loop
repeat
waitR(450,550);
until ableToLogOut;
and I have also close file in another function ,when I log in
if LoggedIn then CloseFile(FileNR);
,, is there any tutorial for working with files in SIMBA or ?
Because I still do not know why my file can not be open ,if its not open by anything else..
edit:
Managed to fix it,
If somebody will have same problem you have to run SIMBA as Administrator.


Reply With Quote
