Results 1 to 1 of 1

Thread: Opening file in SIMBA

  1. #1
    Join Date
    Oct 2011
    Posts
    207
    Mentioned
    1 Post(s)
    Quoted
    20 Post(s)

    Default Opening file in SIMBA

    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.
    Last edited by djborec; 09-12-2012 at 02:20 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •